Features

A simple package to check the device is connected (connectivity) to internet or not.

Usage

dependencies: internet_check: ^0.0.1

bool isOnline = await Internet().check();

if(!isOnline) {

/// There is no internet connection now. /// Display toast or error message "Please check internet and trt again"

return false; }

await /// Call Api or other task

return true

Libraries

internet_check