palestine_connection 0.0.10 copy "palestine_connection: ^0.0.10" to clipboard
palestine_connection: ^0.0.10 copied to clipboard

outdated

Lightweight internet connection test, lookup Google domain.

example/palestine_connection_example.dart

import 'dart:developer' as developer;

import 'package:palestine_connection/palestine_connection.dart';

void main() {
  final PalestineConnection connection = PalestineConnection();
  connection.initialize(
    periodicInSeconds: 3,
    onConnectionLost: () {
      developer.log('No Internet');
    },
    onConnectionRestored: () {
      developer.log('Connection Restored');
    },
  ); // 3 seconds
}
61
likes
0
pub points
64%
popularity

Publisher

verified publishermsayed.net

Lightweight internet connection test, lookup Google domain.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on palestine_connection