internet_check 0.0.1 copy "internet_check: ^0.0.1" to clipboard
internet_check: ^0.0.1 copied to clipboard

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

Features #

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

Usage #

dependencies: internet_check: ^0.0.1

'''dart

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

'''

0
likes
140
points
25
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on internet_check