checkLocationEnabled method
Checks if location services are enabled on the device.
Often required for Wi-Fi and BLE scanning.
Returns a Future completing with true
if enabled, false
otherwise.
Implementation
@override
Future<bool> checkLocationEnabled() async {
final bool? enabled =
await methodChannel.invokeMethod('checkLocationEnabled');
return enabled ?? false;
}