debugState method
Returns a string representation of the pool state for debugging.
Returns a string showing the state of each slot in the pool.
Implementation
String debugState() {
return 'Pool State:\n${_used.asMap().entries.map((e) => '${e.key}: ${e.value ? "used" : "free"}').join('\n')}';
}