NetworkCubit constructor
NetworkCubit(
- NetworkManager _manager
Creates a NetworkCubit with the given NetworkManager.
Implementation
NetworkCubit(this._manager) {
_connectivitySub = _manager.stateStream.listen((state) {
// Only forward connectivity-level states (Offline, Syncing, Idle).
// Request-level states are handled by [executeRequest].
if (state is Offline || state is Syncing) {
emit(state);
}
});
}