getBaseAdjustmentFile method
Future<String?>
getBaseAdjustmentFile(
- String id, {
- bool isOrigin = true,
- PMProgressHandler? progressHandler,
- PMDarwinAVFileType? darwinFileType,
- PMCancelToken? cancelToken,
inherited
Export the base (unedited) file of the asset with id.
Mirrors getFullFile but targets the base adjustment resource.
Implementation
Future<String?> getBaseAdjustmentFile(
String id, {
bool isOrigin = true,
PMProgressHandler? progressHandler,
PMDarwinAVFileType? darwinFileType,
PMCancelToken? cancelToken,
}) async {
assert(Platform.isIOS || Platform.isMacOS);
final params = <String, dynamic>{
'id': id,
'isOrigin': isOrigin,
'darwinFileType': darwinFileType?.value ?? 0,
};
_injectProgressHandlerParams(params, progressHandler);
_setCancelToken(params, cancelToken);
return _channel.invokeMethod(PMConstants.mGetBaseAdjustmentFile, params);
}