notifyListeners method
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);
}
}