connection_checker 0.0.1
connection_checker: ^0.0.1 copied to clipboard
ConnectionChecker is a simple Flutter package that allows you to check for internet connectivity or the connectivity status of any URI provided. This package provides an easy way to verify if a device [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add connection_checkerWith Flutter:
$ flutter pub add connection_checkerThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
connection_checker: ^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:connection_checker/connection_checker.dart';