Check if the device is offline.
static Future<bool> isOffline() async { return !(await isOnline()); }