onNotification<S> method

  1. @override
void onNotification<S>(
  1. SaveProvider<S> provider
)
override

What to do when the observables are changed.

Implementation

@override
void onNotification<S>(SaveProvider<S> provider) {
  if (_skipFirstNotification) {
    _skipFirstNotification = false;
    return;
  }
  try {
    (state as dynamic).dispose();
  } on NoSuchMethodError {
    // ignore it
  }
  initialize();
}