isWifiConnected static method

Future<bool> isWifiConnected()

Checks if the device is connected to a WiFi network.

Implementation

static Future<bool> isWifiConnected() async {
  final bool? result = await GemKitPlatform.instance
      .getChannel(mapId: -1)
      .invokeMethod<bool>('networkProviderCall',
          jsonEncode(<String, String>{'action': 'isWifiConnected'}));
  return result!;
}