LikeNetworkQualityMonitor class

Instance-owned monitor; inject it for deterministic tests and scoped clients.

Constructors

LikeNetworkQualityMonitor({Duration slowAfter = const Duration(seconds: 2), int minimumBytes = 32768, double slowBytesPerSecond = 32768, int samplesForSlow = 2})

Properties

hashCode → int
The hash code for this object.
no setterinherited
minimumBytes → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplesForSlow → int
final
slowAfter → Duration
final
slowBytesPerSecond → double
final
stream → Stream<LikeNetworkQualitySample>
no setter

Methods

dispose() → Future<void>
latest(String origin) → LikeNetworkQualitySample?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record({required Uri uri, required Duration elapsed, int? bytes, bool timedOut = false}) → void
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

shared → LikeNetworkQualityMonitor
final