Last updated:
0 purchases
palestine connection
palestine_connection #
Part of PalestineDevelopers #
Lightweight internet connection test, lookup Google domain.
Table Of Contents #
Features
Getting started
Usage
Features #
Periodic internet connection tests
dispose method
Getting started #
To start, import package
import 'package:palestine_connection/palestine_connection.dart';
copied to clipboard
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
},
);
copied to clipboard
It could get more easier actually
PalConnection().initialize(
periodicInSeconds: 3, // 3 seconds
onConnectionLost: () {
// No Internet
},
onConnectionRestored: () {
// Internet is back
},
);
copied to clipboard
Then you could dispose it
connection.dispose();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.