connectivityMonitor property

ConnectivityMonitor? get connectivityMonitor

Set a connectivity monitor to better manage streaming connections. You can find the FlutterConnectivityMonitor in the serverpod_flutter package.

Implementation

ConnectivityMonitor? get connectivityMonitor => _connectivityMonitor;
set connectivityMonitor (ConnectivityMonitor? monitor)

Implementation

set connectivityMonitor(ConnectivityMonitor? monitor) {
  _connectivityMonitor?.removeListener(_connectivityChanged);
  monitor?.addListener(_connectivityChanged);
  _connectivityMonitor = monitor;
}