remove method
Removes a notifier. For GaanaNotifier, only removes the one with the matching key.
Implementation
void remove(Listenable notifier) {
if (notifier is GaanaNotifier) {
_notifiers.removeWhere(
(n) => n is GaanaNotifier && (n).key == notifier.key,
);
} else {
_notifiers.remove(notifier);
}
notifier.removeListener(_onChildChanged);
notifyListeners();
}