onDispose method

void onDispose(
  1. Future callback()
)
override

Implementation

void onDispose(Future Function() callback) {
  _onDispose.add(callback);
}