Untitled
faisalsalameh
dart
3 years ago
289 B
4
Indexable
static Future<bool> get status async { var connectivityResult = await (Connectivity().checkConnectivity()); if (connectivityResult == ConnectivityResult.wifi || connectivityResult == ConnectivityResult.mobile) { return true; } else { return false; } }
Editor is loading...