getBaseAdjustmentFile method

Future<String?> getBaseAdjustmentFile(
  1. String id, {
  2. bool isOrigin = true,
  3. PMProgressHandler? progressHandler,
  4. PMDarwinAVFileType? darwinFileType,
  5. 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);
}