loadFile method

Future<File?> loadFile({
  1. bool isOrigin = true,
  2. bool withSubtype = false,
  3. PMProgressHandler? progressHandler,
  4. PMDarwinAVFileType? darwinFileType,
})

Obtain file of the asset with a PMProgressHandler.

withSubtype only takes effect on iOS, typically for Live Photos.

darwinFileType will try to define the export format when exporting assets, such as exporting a MOV file to MP4.

See also:

Implementation

Future<File?> loadFile({
  bool isOrigin = true,
  bool withSubtype = false,
  PMProgressHandler? progressHandler,
  PMDarwinAVFileType? darwinFileType,
}) {
  return _getFile(
    isOrigin: isOrigin,
    subtype: withSubtype ? subtype : 0,
    progressHandler: progressHandler,
    darwinFileType: darwinFileType,
  );
}