loadFile method

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

Obtain file of the asset with a PMProgressHandler.

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

See also:

  • file which can obtain the compressed file.
  • fileWithSubtype which can obtain the compressed file with subtype.
  • originFile which can obtain the original file.
  • originFileWithSubtype which can obtain the origin file with subtype.

Implementation

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