doOnClose method
void
doOnClose(
- void onClose()
Adds custom actions to be executed when the associated Closer
is closed.
Implementation
void doOnClose(void Function() onClose) {
closer.addClosable(_DoOnClose(onClose));
}