checkPermission method
Implementation
@override
Future<LocationPermission> checkPermission() async {
try {
final index = await methodChannel.invokeMethod<int>('checkPermission');
return LocationPermission.values[index ?? 0];
} on PlatformException catch (e) {
throw _mapException(e);
}
}