removeListenerId method Null safety

void removeListenerId(
  1. Object id,
  2. VoidCallback listener
)

Implementation

void removeListenerId(Object id, VoidCallback listener) {
  assert(_debugAssertNotDisposed());
  if (_updatersGroupIds!.containsKey(id)) {
    _updatersGroupIds![id]!.remove(listener);
  }
  _updaters!.remove(listener);
}