check_internet_connection 1.0.0
check_internet_connection: ^1.0.0 copied to clipboard
A library that check user's internet connection.
example/check_internet_connection_example.dart
// ignore_for_file: unused_local_variable, non_constant_identifier_names
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);
}