unlock method

  1. @override
Future<bool> unlock({
  1. required String filePath,
  2. required String password,
})
override

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;
  }
}