SpeedTestProgress class

测速过程中的进度快照 / Progress snapshot emitted during a speed test.

Constructors

SpeedTestProgress({required SpeedTestPhase phase, required int bytes, required Duration elapsed, required double speedMbps})
构造 SpeedTestProgress / Creates a SpeedTestProgress.
const

Properties

bytes int
当前阶段累计字节数 / Bytes transferred during the current phase.
final
elapsed Duration
当前阶段已耗时 / Elapsed time of the current phase.
final
hashCode int
The hash code for this object.
no setterinherited
phase SpeedTestPhase
当前阶段 / Current phase.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speedMbps double
当前阶段瞬时速率,单位 Mbps / Instantaneous throughput, in Mbps.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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