loadFile method
Future<File?>
loadFile({
- bool isOrigin = true,
- bool withSubtype = false,
- PMProgressHandler? progressHandler,
- 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:
- 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,
PMDarwinAVFileType? darwinFileType,
}) {
return _getFile(
isOrigin: isOrigin,
subtype: withSubtype ? subtype : 0,
progressHandler: progressHandler,
darwinFileType: darwinFileType,
);
}