SpeedTestPort class

A Speed tester. Future based

Constructors

SpeedTestPort()

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

createTestUrl(Server server, String file) Uri
Creates Uri from Server and String file
generateDownloadUrls(Server server, int retryCount, List<FileSize> downloadSizes) List<String>
Returns urls for download test.
generateUploadData(int retryCount) List<String>
Generate list of String urls for upload.
getBestServers({required List<Server> servers, int retryCount = 2, int timeoutInSeconds = 2}) Future<List<Server>>
Returns a ListServer with the best servers, ordered by lowest to highest latency.
getSettings() Future<Settings>
Returns Settings from speedtest.net.
getSpeed(List<int> tasks, int elapsedMilliseconds) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
testDownloadSpeed({required List<Server> servers, int simultaneousDownloads = 2, int retryCount = 3, List<FileSize> downloadSizes = defaultDownloadSizes, required ProgressCallback onProgress, required DoneCallback onDone, required ErrorCallback onError}) Future<void>
Returns double downloaded speed in MB/s.
testUploadSpeed({required List<Server> servers, int simultaneousUploads = 2, int retryCount = 3, required ProgressCallback onProgress, required DoneCallback onDone, required ErrorCallback onError}) Future<void>
Returns double upload speed in MB/s.
toString() String
A string representation of this object.
inherited

Operators

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