SpeedTestService class

带宽(网速)测试服务 / Bandwidth (speed) test service.

Constructors

SpeedTestService({Client? client, PingService? pingService})
构造 SpeedTestService / Creates a SpeedTestService.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runSpeedTest({String downloadUrl = 'https://speed.cloudflare.com/__down?bytes=25000000', String? uploadUrl, Duration timeout = const Duration(seconds: 30), Duration maxDuration = const Duration(seconds: 10), Duration pingTimeout = const Duration(seconds: 3), int uploadPayloadBytes = 1048576, String? pingHost, int pingCount = 4, bool includeUpload = true, bool includePing = true, void onProgress(SpeedTestProgress progress)?}) Future<SpeedTestResult>
执行一次网速测试 / Runs a complete speed test.
toString() String
A string representation of this object.
inherited

Operators

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