doOnClose method

void doOnClose(
  1. void onClose()
)

Adds custom actions to be executed when the associated Closer is closed.

Implementation

void doOnClose(void Function() onClose) {
  closer.addClosable(_DoOnClose(onClose));
}