onDispose method

void onDispose(
  1. void cb()
)

called when the notifier linked to this reference is destroyed

Implementation

void onDispose(void Function() cb) {
  _disposableCallback = cb;
}