notifyListeners method

  1. @protected
void notifyListeners(
  1. bool connected
)

Notifies listeners of changes in connectivity. This method should only be called by classes that inherits from ConnectivityMonitor.

Implementation

@protected
void notifyListeners(bool connected) {
  for (var listener in _listeners) {
    listener(connected);
  }
}