NetworkType enum Null safety

网络类型。

Constants

Disconnected → const NetworkType

网络连接已断开。

@JsonValue(0)
const NetworkType(1)
LAN → const NetworkType

网络类型为 LAN。

@JsonValue(1)
const NetworkType(2)
Mobile2G → const NetworkType

网络类型为 2G 移动网络。

@JsonValue(3)
const NetworkType(4)
Mobile3G → const NetworkType

网络类型为 3G 移动网络。

@JsonValue(4)
const NetworkType(5)
Mobile4G → const NetworkType

网络类型为 4G 移动网络。

@JsonValue(5)
const NetworkType(6)
Unknown → const NetworkType

网络连接类型未知。

@JsonValue(-1)
const NetworkType(0)
values → const List<NetworkType>

A constant List of the values in this enum, in order of their declaration.

const List<NetworkType>
WIFI → const NetworkType

网络类型为 Wi-Fi(包含热点)。

@JsonValue(2)
const NetworkType(3)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited