Lightweight internet connection test, lookup a domain.

Related tags

Templates connection
Overview

palestine_connection

Lightweight internet connection test, lookup Google domain.

License 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 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();
You might also like...

Flutter App Check Network connection State with Getx

flutter_network_connection A Flutter project Checking Network Status of a App. Info This project is a networking status checking Flutter application.

Oct 28, 2022

Flutter_ddd - Experimental Flutter project with Domain-Driven Design

Flutter_ddd - Experimental Flutter project with Domain-Driven Design

flutter_ddd Notes app sample in Dart / Flutter with DDD. This is an outcome of my attempt to understand Domain-Driven Design and consider how I can in

Dec 18, 2022

Flutter starter project - boilerPlate for Clean Architecture with Domain-Driven-Design with commonly used dependencies

flutter_starter_project A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

Jan 2, 2022

Domain-Driven Design + Firebase Flutter Course

Domain-Driven Design + Firebase Flutter Course

Domain-Driven Design + Firebase Flutter Course The whole accompanying tutorial series is available at ๐Ÿ‘‰ this link ๐Ÿ‘ˆ . Find more tutorials on resocod

Dec 31, 2022

Flutter Architecture inspired by Domain Driven Design, Onion and Clean Architecture

Flutter Architecture inspired by Domain Driven Design, Onion and Clean Architecture

Inspiring Domain Driven Design Flutter Architecture Please take a look at my slides to learn more Strategic Domain Driven Design For Improving Flutter

Dec 25, 2022

DostiPak - Dating app to make connection between people and start new love story to lovers

DostiPak - Dating app to make connection between people and start new love story to lovers

Dosti Pak Dating app to make connection between people and start new love story

Oct 2, 2022

Social app has a real time connection with firebase , contains posts, chats, stories, friends

##SocialKom (Social App) #####First Notice this: you need to link the app with fire base by: 1- adding google-services.json for android 2- adding goog

Oct 8, 2022

Multi Translator build with Flutter, It developed with DDD (Domain Driven Design) principles.

Multi Translator build with Flutter, It developed with DDD (Domain Driven Design) principles.

Multi Translator App An app utilizes to translate any text to multiple languages. Features Localization Multiple Translation Single Translation Deep L

Dec 27, 2022

The domain specific language in dart for flutter widgets.

The domain specific language in dart for flutter widgets.

Rettulf !esrever ni stegdiw etirW Getting started import 'package:rettulf/rettulf.dart'; void main() = const MyApp().runAsApp(); class MyApp extend

Dec 21, 2022
Releases(v0.0.21)
Owner
Palestine Developers
Palestine Developers
A pure Dart utility library that checks for an internet connection by opening a socket to a list of specified addresses, each with individual port and timeout. Defaults are provided for convenience.

data_connection_checker A pure Dart utility library that checks for an internet connection by opening a socket to a list of specified addresses, each

Kristiyan Mitev 103 Nov 29, 2022
The Integration Test Helper has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage.

The Integration Test Helper has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS

The Mobile Applications Community 2 Apr 7, 2022
A Dart-native lightweight Apache Pulsar client primarily focused on the IoT telemetry domain

pulsar_iot_client A lightweight Apache Pulsar client primarily focused on the IoT telemetry domain. This project aims to improve the resulting perform

Mike Zolotarov 5 May 10, 2022
The purpose of this project was to test Google Map Services in connection with Flutter on Android, iOS

A large variety of apps depend on map services. The purpose of this project was to test Google Map Services in connection with Flutter on Android, iOS and Web platforms. Here is what I got:

Derek Jones 15 Oct 17, 2022
Flutter bloc cubit test knowdge - Flutter bloc cubit test knowdge

Flutter Bloc Simple Api This project is using weather api for featch data and di

Waruna Kaushalya 0 Jan 3, 2022
Integration test - Copy of the official Flutter integration test plugin

integration_test This package enables self-driving testing of Flutter code on de

null 0 Jan 5, 2022
Integration Test Preview allows tests on multiple screen sizes in a single e2e test run.

Integration Test Preview has pre-configured methods that allow for faster test deployment for end to end (e2e) test coverage (using Android and iOS pl

The Mobile Applications Community 3 Aug 23, 2022
A mobile application that allows you to search and fetch recipes using Flutter, TheMealDB and Domain Driven Design

recipe_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

Johnny Nguyen 0 Dec 4, 2021
Crypto Loss Gain Calculator App build with Flutter. It developed with DDD (Domain Driven Design) principles.

Crypto Loss Gain Calculator Crypto Loss Gain Calculator App build with Flutter. It developed with DDD (Domain Driven Design) principles. Domain-Driven

Selim รœstel 9 Dec 27, 2022