onDispose property

VoidCallback get onDispose
inherited

Implementation

VoidCallback get onDispose {
  return () {
    _onDispose.forEach((callback) => callback());
  };
}
set onDispose (VoidCallback callback)
inherited

Implementation

set onDispose(VoidCallback callback) {
  _onDispose.add(callback);
}