MockConnectivityMonitor class
Controllable mock connectivity monitor for testing and simulation.
- Implemented types
Constructors
- MockConnectivityMonitor({bool initialConnected = true})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isConnected
→ Future<
bool> -
Whether the device currently has an active Internet connection.
no setteroverride
-
onConnectivityChanged
→ Stream<
bool> -
Stream emitting boolean connection status changes (
true= online,false= offline).no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes resources and listeners.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setConnected(
bool connected) → void - Manually change the connection state and notify listeners.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited