ConnectivityResult enum

Connection status check result.

Inheritance
Available extensions

Values

bluetooth → const ConnectivityResult

Bluetooth: Device connected via bluetooth

wifi → const ConnectivityResult

WiFi: Device connected via Wi-Fi

ethernet → const ConnectivityResult

Ethernet: Device connected to ethernet network

mobile → const ConnectivityResult

Mobile: Device connected to cellular network

none → const ConnectivityResult

None: Device not connected to any network

vpn → const ConnectivityResult

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 ConnectivityResult

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
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<ConnectivityResult>
A constant List of the values in this enum, in order of their declaration.