isOffline static method

Future<bool> isOffline()

Check if the device is offline.

Implementation

static Future<bool> isOffline() async {
  return !(await isOnline());
}