getPermissionStatus method
Gets the current permission status for contacts access.
Implementation
@override
Future<PermissionStatus> getPermissionStatus() async {
try {
final result = await methodChannel.invokeMethod<String>(
'getPermissionStatus',
);
return _parsePermissionStatus(result);
} on PlatformException catch (e) {
final errorDetails =
e.details?.toString() ?? e.message ?? 'Unknown error';
throw Exception('Failed to get permission status: $errorDetails');
}
}