Persists and retrieves the last known ConnectivityResultModel.
Used to:
- Show a meaningful UI state immediately on app launch (before first probe).
- Let the app know if it was online when last used.
Uses SharedPreferences — lightweight, no external DB needed.
- Implementers
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
-
clear(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Future< ConnectivityResultModel?> -
toString(
) → String -
A string representation of this object.
inherited
-
write(
ConnectivityResultModel result) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited