onClose method

void onClose(
  1. Future<void> fn()?
)

Implementation

void onClose(Future<void> Function()? fn) => _onClose = fn;