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

Lightweight internet connection test, lookup any provided domain.

palestine_connection #

Part of PalestineDevelopers #

Lightweight internet connection test, lookup Google domain.

License Pub Example

PUB GitHub release GitHub stars GitHub forks

Build Status

Table Of Contents #

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 PalConnection connection = PalConnection();
connection.initialize(
    domain: PalDomain.random, // Domain To Test On (optional)
    periodicInSeconds: 3, // 3 seconds
    onConnectionLost: () {
      // No Internet
    },
    onConnectionRestored: () {
      // Internet is back
    },
  );

It could get more easier actually

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

Then you could dispose it

connection.dispose();
61
likes
140
pub points
71%
popularity

Publisher

verified publishermsayed.net

Lightweight internet connection test, lookup any provided domain.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on palestine_connection