unlock method
unlock pdf filePath: pdf file path password: pdf password return: unlock result
Implementation
@override
Future<bool> unlock({required String filePath, required String password}) async {
try {
final bool result = await methodChannel.invokeMethod('unlock', {
'filePath': filePath,
'password': password,
});
return result;
} on PlatformException catch (e) {
if (kDebugMode) {
print("Failed to unlock PDF: '${e.message}'.");
}
rethrow;
}
}