loadFile method

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

Obtain file of the asset with a PMProgressHandler.

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

See also:

Implementation

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