network_type_reachability 1.3.3
network_type_reachability: ^1.3.3 copied to clipboard
This plugin allows you to detect changes in the mobile network, 2G, 3G, 4G, 5G. it can also detect whether the internet connection status is real or not working and even unstable.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add network_type_reachabilityThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
network_type_reachability: ^1.3.3Alternatively, 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_reachability/network_type_reachability.dart';