NetworkInfo class

Network information

Data structure for network status information, containing user ID, network quality, packet loss rate and latency.

Property Type Description
userID String User unique ID
quality NetworkQuality Network quality
upLoss int Uplink packet loss rate, range 0, 100
downLoss int Downlink packet loss rate, range 0, 100
delay int {'Latency (unit': 'milliseconds)'}

Constructors

NetworkInfo({String userID = '', NetworkQuality quality = NetworkQuality.excellent, int upLoss = 0, int downLoss = 0, int delay = 0})

Properties

delay int
Latency (unit: milliseconds).
final
downLoss int
Downlink packet loss rate, range 0, 100.
final
hashCode int
The hash code for this object.
no setterinherited
quality NetworkQuality
Network quality.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upLoss int
Uplink packet loss rate, range 0, 100.
final
userID String
User unique ID.
final

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