FakeConnectivityService class
Controllable ConnectivityService for tests and demos.
- Implemented types
Constructors
- FakeConnectivityService({bool online = true})
- Creates a FakeConnectivityService, online by default.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- online ↔ bool
-
Current simulated status.
getter/setter pair
-
onStatusChange
→ Stream<
bool> -
Stream that emits true when network becomes available, false when offline.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes of resources used by this service.
override
-
isOnline(
) → Future< bool> -
Checks if the device is currently online.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited