finap_connectivity_helper 0.0.2 icon indicating copy to clipboard operation
finap_connectivity_helper: ^0.0.2 copied to clipboard

Finap Connectivity Helper.

Finap Connectivity Helper

Features #

Check whether app is connected to internet or not.

Getting started #

Run this command to install

flutter pub add finap_connectivity_helper

Usage #

isConnected #

Future<bool> isConnected() async {
    var connectivityResult = await connectivity.checkConnectivity();
    if (connectivityResult == ConnectivityResult.none) {
      return false;
    } else {
      return true;
    }
}
0
likes
90
pub points
45%
popularity

Publisher

unverified uploader

Finap Connectivity Helper.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

connectivity_plus, flutter

More

Packages that depend on finap_connectivity_helper