notifyListeners method

void notifyListeners(
  1. TNotification change
)

Implementation

void notifyListeners(TNotification change) {
  if (!_canHandle(change)) {
    return;
  }

  _context.untracked(() {
    for (final listener in _handlers?.toList(growable: false) ?? []) {
      listener(change);
    }
  });
}