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.

palestine_connection #

Lightweight internet connection test, lookup Google domain.

Pub Example

Part of PalestineDevelopers project

Fork Star Watch

Features #

  • Periodic internet connection tests
  • dispose method

Getting started #

To start, import package

import 'package:palestine_connection/palestine_connection.dart';

Usage #

Just as easy as this

final PalestineConnection connection = PalestineConnection();
connection.initialize(
    periodicInSeconds: 3, // 3 seconds
    onConnectionLost: () {
      // No Internet
    },
    onConnectionRestored: () {
      // Internet is back
    },
  );

It could get more easier actually

PalestineConnection().initialize(
    periodicInSeconds: 3, // 3 seconds
    onConnectionLost: () {
      // No Internet
    },
    onConnectionRestored: () {
      // Internet is back
    },
  ); // 3 seconds

Then you could dispose it

connection.dispose();
61
likes
0
pub points
57%
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