net_checker 0.0.6
net_checker: ^0.0.6 copied to clipboard
A lightweight Flutter package to check internet connectivity, monitor connection changes, measure latency, and detect network quality.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add net_checkerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
net_checker: ^0.0.6Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:net_checker/net_checker.dart';