Last updated:
0 purchases
internet check
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.