checkWifiEnabled method

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

Checks if Wi-Fi is enabled on the device.

Returns a Future completing with true if enabled, false otherwise.

Implementation

@override
Future<bool> checkWifiEnabled() async {
  final bool? enabled = await methodChannel.invokeMethod('checkWifiEnabled');
  return enabled ?? false;
}