isWifiEnabled method

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

Whether the Android Wi-Fi switch is on (Settings.Global.wifi_on).

Implementation

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