loadFile method

  1. @override
Future<bool> loadFile(
  1. String path,
  2. String? password,
  3. bool useDataReader
)
override

Implementation

@override
Future<bool> loadFile(String path, String? password, bool useDataReader) {
  var data = <String, dynamic>{
    'path': path,
    'password': password,
    'useDataReader': useDataReader
  };
  return methodChannel
      .invokeMethod<bool>("loadFile", data)
      .then<bool>((bool? value) => value ?? false);
}