dio_speed_tracker 0.0.1
dio_speed_tracker: ^0.0.1 copied to clipboard
A lightweight and extensible Dio interceptor for monitoring real-world network speed in Mbps, based on actual HTTP download performance. Emits NetworkStatus.poor when the average speed drops below a c [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dio_speed_trackerWith Flutter:
$ flutter pub add dio_speed_trackerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
dio_speed_tracker: ^0.0.1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dio_speed_tracker/dio_speed_tracker.dart';