NetworkNotifier constructor

NetworkNotifier(
  1. NetworkManager _manager
)

Creates a NetworkNotifier bound to the given NetworkManager.

Automatically subscribes to the manager's stateStream.

Implementation

NetworkNotifier(this._manager) {
  _subscription = _manager.stateStream.listen((state) {
    _state = state;
    notifyListeners();
  });
}