getFile method

  1. @override
Future<Uint8List?> getFile({
  1. required String fileName,
  2. String? folderPath,
  3. bool fromRoot = false,
})
override

Implementation

@override
Future<Uint8List?> getFile({
  required String fileName,
  String? folderPath,
  bool fromRoot = false,
}) async {
  if (fromRoot) {
    return await getFromRoot(fileName: fileName, folderPath: folderPath);
  } else {
    return await getFromDCIM(fileName: fileName, subfolder: folderPath);
  }
}