checkPermissions method
Check if required permissions are granted
Implementation
@override
Future<bool> checkPermissions() async {
try {
final bool? result = await methodChannel.invokeMethod<bool>(
'checkPermissions',
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint("Error checking permissions: ${e.message}");
return false;
}
}