release method
void
release()
Implementation
void release() {
if (!_released) {
_released = true;
for (final method in _queue) {
method();
}
_queue.clear(); // Clear the queue after executing
}
}