fastnet 1.0.2 copy "fastnet: ^1.0.2" to clipboard
fastnet: ^1.0.2 copied to clipboard

A Dart package that allows you to test your network download and upload speed using fast.com.

example/main.dart

import 'package:fastnet/fastnet.dart';
import 'package:fastnet/src/model/result.dart';

void main() async {
  var fastnet = FastNet();
  var response = await fastnet.getSpeed();
  response.listen((Result result) {
    print(
        "Download: ${result.downloadSpeedValue} ${result.downloadSpeedUnit}\n Upload:  ${result.uploadSpeedValue} ${result.uploadSpeedUnit}");
  });
}

/* OUTPUT

Download: 1.0Mbps
Upload: 567Kbps
Download: 5.0Mbps
Upload: 1.2Mbps
Download: 20Mbps
Upload: 3.0Mbps

*/
6
likes
40
pub points
0%
popularity

Publisher

verified publisherdammak.dev

A Dart package that allows you to test your network download and upload speed using fast.com.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

equatable, flutter, puppeteer

More

Packages that depend on fastnet