NetworkInfo class

Represents network information, including speed, type, video quality, connection quality, and timestamp.

Constructors

NetworkInfo({required double downloadSpeed, required double uploadSpeed, required NetworkType networkType, required VideoQuality videoQuality, required ConnectionQuality connectionQuality, DateTime? timestamp})
Creates a new instance of NetworkInfo.

Properties

connectionQuality → ConnectionQuality
The determined connection quality.
final
downloadSpeed → double
The measured download speed in Mbps.
final
hashCode → int
The hash code for this object.
no setterinherited
networkType → NetworkType
The type of network (e.g., WiFi, Mobile).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
The timestamp when the network information was recorded.
final
uploadSpeed → double
The measured upload speed in Mbps.
final
videoQuality → VideoQuality
The estimated video quality based on network speed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the network info to a JSON-friendly format.
toString() → String
Returns a human-readable string representation of the network info.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited