BitrateMeasurement class

Holds a bitrate sample in bits per second together with the sampled time.

Constructors

BitrateMeasurement({required double bitsPerSecond, required DateTime sampledAt})

Properties

bitsPerSecond double
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampledAt DateTime
final

Methods

asUnit(BitrateUnit unit) double
Converts the stored bitrate into the requested unit.
format({BitrateUnit unit = BitrateUnit.kbps, int fractionDigits = 0, String? suffix}) String
Formats the measurement using unit. Supply suffix to override the default unit label (useful when localising strings).
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