checkPermission method
Returns the current location permission status without prompting the user.
Implementation
@override
Future<LocationPermissionStatus> checkPermission() async {
try {
final status =
await methodChannel.invokeMethod<String>('checkPermission');
return _permissionStatusFromString(status);
} on PlatformException catch (e) {
throw LocationPlatformException(
message: e.message ?? 'Failed to check permission',
code: e.code,
);
}
}