ConnectivityMonitor class abstract
Keeps track of internet connectivity and notifies its listeners when the internet connection is either lost or regained. For most use cases, use the concrete FlutterConnectivityMonitor class in the serverpod_flutter package.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
ConnectivityMonitorListener listener) → void - Adds a listener to the connectivity monitor.
-
dispose(
) → void - Removes all listeners from the connectivity monitor.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
bool connected) → void - Notifies listeners of changes in connectivity. This method should only be called by classes that inherits from ConnectivityMonitor.
-
removeListener(
ConnectivityMonitorListener listener) → void - Removes a listener from the connectivity monitor.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited