ConnectionQuality enum
Represents the perceived quality of the network connection based on latency and stability.
Values
- excellent → const ConnectionQuality
-
Excellent connection with very low latency.
Typically < 50ms. Suitable for high-performance real-time tasks like competitive gaming or high-frequency trading.
- great → const ConnectionQuality
-
Great connection with low latency.
Typically < 100ms. Suitable for VoIP, video conferencing, and smooth browsing.
- good → const ConnectionQuality
-
Good, usable connection with acceptable latency.
Typically < 150ms. Suitable for most standard web applications and streaming.
- moderate → const ConnectionQuality
-
Moderate connection with noticeable latency.
Typically < 250ms. Users might notice slight delays in interactive elements.
- poor → const ConnectionQuality
-
Poor connection with high latency.
Typically < 500ms. Basic browsing will feel slow, and real-time apps will struggle.
- unstable → const ConnectionQuality
-
Connection is active, but high jitter or packet loss makes it unreliable.
The network is "connected" but the experience will be degraded and unpredictable.
- captivePortal → const ConnectionQuality
-
A captive portal (login page) was detected.
The device is connected to an AP, but internet access is restricted until the user interacts with the portal (e.g., at an airport or hotel).
- offline → const ConnectionQuality
-
No connection detected or all essential targets failed.
The network is completely unreachable or unusable.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- 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<
ConnectionQuality> - A constant List of the values in this enum, in order of their declaration.