fastnet 1.0.2
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

*/
2
likes
70
pub points
64%
popularity

Publisher

dammak.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, flutter, puppeteer

More

Packages that depend on fastnet