NetworkType enum
The type of network currently available.
none means no network at all (the sync
should be skipped). wifi and cellular are
the most common; vpn and ethernet are
less common but possible on desktop/server.
Values
- none → const NetworkType
-
No network available. Sync should be skipped.
- wifi → const NetworkType
-
WiFi (or other unmetered connection).
- cellular → const NetworkType
-
Cellular (metered). Sync should be throttled.
- vpn → const NetworkType
-
VPN. Treat as unmetered (the user paid for it).
- ethernet → const NetworkType
-
Wired Ethernet. Treat as unmetered.
- unknown → const NetworkType
-
Unknown / unsupported. Conservative: treat as metered (skip sync to avoid surprise bandwidth).
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<
NetworkType> - A constant List of the values in this enum, in order of their declaration.