ConnectivityStatus enum

Connection status check result.

Inheritance

Constructors

ConnectivityStatus()
const

Values

bluetooth → const ConnectivityStatus

Bluetooth: Device connected via bluetooth

wifi → const ConnectivityStatus

WiFi: Device connected via Wi-Fi

ethernet → const ConnectivityStatus

Ethernet: Device connected to ethernet network

mobile → const ConnectivityStatus

Mobile: Device connected to cellular network

none → const ConnectivityStatus

None: Device not connected to any network

vpn → const ConnectivityStatus

VPN: Device connected to a VPN

Note for iOS and macOS: There is no separate network interface type for vpn. It returns other on any device (also simulator).

other → const ConnectivityStatus

Other: Device is connected to an unknown network

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<ConnectivityStatus>
A constant List of the values in this enum, in order of their declaration.