check_internet_connection 1.0.0 copy "check_internet_connection: ^1.0.0" to clipboard
check_internet_connection: ^1.0.0 copied to clipboard

A library that check user's internet connection.

check_internet_connection #

A library that check user's internet connection.

license pub package

Usage #

First of all, import the library:

import 'package:check_internet_connection/check_internet_connection.dart';

Check Internet Connection

void NotNone() {
    print("There's internet!");
}

void None() {
    print("There's no internet!");
}

checkInternectConnectionWithFunctions(NotNone, None);

A Simple Example

import 'package:check_internet_connection/check_internet_connection.dart';

void main() {
  int number = 0;

  void NotNone() {
    print("There's internet!");
    number = 0;
  }

  void None() {
    print("There's no internet!");
    number = 1;
  }

  checkInternectConnectionWithFunctions(NotNone, None);
}

Output

// If there is internet
There's internet!
// If there is no internet
There is no internet!
1
likes
40
points
30
downloads

Publisher

verified publishersnaplan.o-r.kr

Weekly Downloads

A library that check user's internet connection.

Repository (GitHub)

License

MIT (license)

Dependencies

connectivity_plus

More

Packages that depend on check_internet_connection