release method
void
release()
Tells the parent Pool that the resource associated with this resource is no longer allocated, and that a new PoolResource may be allocated.
Implementation
void release() {
if (_released) {
throw StateError('A PoolResource may only be released once.');
}
_released = true;
_pool._onResourceReleased();
}