isWifiConnected method

  1. @override
Future<bool> isWifiConnected()
override

Whether the device is connected to a Wi-Fi network.

Ethernet or other transports are not counted; a Wi-Fi network without Internet capability still counts because local networking works.

Implementation

@override
Future<bool> isWifiConnected() async =>
    await methodChannel.invokeMethod<bool>('isWifiConnected') ?? false;