offAll method

void offAll(
  1. Object? instance
)

Removes all instance's events

Implementation

void offAll(Object? instance) {
  final notifiers = _notifiers.where((notifier) => notifier == instance);

  for (final notifier in {...notifiers}) {
    notifier.dispose();
    _notifiers.remove(notifier);
  }
}