network_type_detector 2.0.0
network_type_detector: ^2.0.0 copied to clipboard
This package allows your Flutter app to detect the current network type, supporting 2G, 3G, 4G, 5G, and Wi-Fi.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add network_type_detectorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
network_type_detector: ^2.0.0Alternatively, 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:network_type_detector/network_type_detector.dart';