NetworkStatus enum

The high-level, user-facing network status.

This is a summary derived from finer-grained signals (local connectivity, real Internet reachability, server health and latency). Prefer reading NetworkInfo directly when you need to distinguish "no Wi-Fi" from "Wi-Fi but no Internet" from "Internet but the API server is down" — those are different problems with different fixes, and this package never conflates them internally even though this enum gives you a convenient single value.

Inheritance
Available extensions

Values

unknown → const NetworkStatus

No status has been determined yet (before the first check).

checking → const NetworkStatus

A check is currently in progress.

online → const NetworkStatus

Local connection, Internet and (if configured) the server are all reachable.

offline → const NetworkStatus

Neither a local connection nor Internet is available, or an Internet check has explicitly failed.

unstable → const NetworkStatus

A connection exists but is flaky — e.g. intermittent reachability failures or consistently poor NetworkQuality. Requests may still succeed, just less reliably.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isOnline bool
Convenience getter for UI code that only cares about a binary online/offline split. checking and unknown are treated as "not confirmed online" rather than guessed either way.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<NetworkStatus>
A constant List of the values in this enum, in order of their declaration.