LatencyStats class
A suite of statistical metrics derived from multiple latency samples.
These metrics provide deep insight into the "health" and consistency of the connection, helping identify subtle issues like bufferbloat or interference.
- Available extensions
Constructors
Properties
- avgLatencyMs → BigInt?
-
The arithmetic mean of all successful latency samples.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- jitterMs → BigInt
-
The "Jitter" value in milliseconds.
final
- latencyMs → BigInt
-
The representative latency value (usually the mean of all successful samples).
Measured in milliseconds.
final
- maxLatencyMs → BigInt?
-
The highest latency recorded across all samples in the cycle.
Often indicates transient congestion or "spikes".
final
- minLatencyMs → BigInt?
-
The lowest latency recorded across all samples in the cycle.
Represents the "best-case" performance of the current link.
final
- packetLossPercent → double
-
The percentage of samples (0.0 to 100.0) that failed to return a response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stabilityScore → int
-
A composite score from 0 (broken) to 100 (perfect) representing overall stability.
final
Methods
-
copyWith(
{BigInt? latencyMs, BigInt? jitterMs, double? packetLossPercent, BigInt? minLatencyMs, BigInt? avgLatencyMs, BigInt? maxLatencyMs, int? stabilityScore}) → LatencyStats -
Available on LatencyStats, provided by the LatencyStatsCopyWith extension
Creates a copy of stats with updated metrics. -
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.
override