registerWatchAction method

  1. @internal
  2. @nonVirtual
void registerWatchAction(
  1. WatchActionSubscription subscription
)
inherited

Registers a WatchAction so it can be later disposed when the notifier is disposed.

Implementation

@internal
@nonVirtual
void registerWatchAction(WatchActionSubscription subscription) {
  _watchActions.add(subscription);
  _watchActions.removeWhere((s) => s.disposed);
}