NetworkStatus class
A high-level summary of the network's current state.
This structure is what most UI layers will use to determine whether to show a "Connected" or "Offline" banner.
- Available extensions
Constructors
- NetworkStatus({required bool isConnected, required ConnectionQuality quality, required LatencyStats latencyStats, required String winnerTarget})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isConnected → bool
-
True if the network is functionally "up" based on the configured strategy.
final
- latencyStats → LatencyStats
-
Detailed statistical breakdown for performance analysis.
final
- quality → ConnectionQuality
-
The categorical quality of the connection (e.g., Excellent, Poor, Offline).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- winnerTarget → String
-
The label of the specific target that responded the fastest in this check.
final
Methods
-
copyWith(
{bool? isConnected, ConnectionQuality? quality, LatencyStats? latencyStats, String? winnerTarget}) → NetworkStatus -
Available on NetworkStatus, provided by the NetworkStatusCopyWith extension
Returns a copy of the high-level status with modified values. -
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.
override