readFile method

  1. @override
Future<bool> readFile({
  1. required String tempFilePath,
  2. required String fileName,
  3. required DirType dirType,
  4. required DirName dirName,
  5. required String relativePath,
})
override

Implementation

@override
Future<bool> readFile({
  required String tempFilePath,
  required String fileName,
  required DirType dirType,
  required DirName dirName,
  required String relativePath,
}) async {
  final status = await methodChannel.invokeMethod<bool>('readFile', {
    "tempFilePath": tempFilePath,
    "fileName": fileName,
    "dirType": dirType.index,
    "dirName": dirName.folder,
    "appFolder": relativePath,
  });
  return status ?? false;
}