checkPermission method
Check if a permission is granted
Implementation
@override
Future<bool> checkPermission(String permission) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'checkPermission',
{'permission': permission},
);
return result ?? false;
} on PlatformException catch (e) {
throw MCPPlatformException(
'Failed to check permission', e.code, e.details);
}
}