isOffline static method Null safety

Future<bool> isOffline()

Returns whether the SDK is currently configured not to make network connections.

Implementation

static Future<bool> isOffline() async {
  bool? result = await _channel.invokeMethod('isOffline');
  return result ?? true;
}