XVideoExportRequest constructor

const XVideoExportRequest({
  1. required String path,
  2. required String outPath,
  3. int? trimStartMs,
  4. int? trimEndMs,
  5. bool removeAudio = false,
  6. List<double>? transform,
  7. int? outWidth,
  8. int? outHeight,
  9. int? videoBitrate,
  10. String? overlayPath,
})

Creates a request; see the class docs for field semantics.

Implementation

const XVideoExportRequest({
  required this.path,
  required this.outPath,
  this.trimStartMs,
  this.trimEndMs,
  this.removeAudio = false,
  this.transform,
  this.outWidth,
  this.outHeight,
  this.videoBitrate,
  this.overlayPath,
}) : assert(
       (transform == null) == (outWidth == null),
       'transform and outWidth/outHeight go together',
     ),
     assert(
       (outWidth == null) == (outHeight == null),
       'outWidth and outHeight go together',
     ),
     assert(
       overlayPath == null || transform != null,
       'overlayPath requires the transform re-encode path — send the '
       'identity affine at source dims for an overlay-only export',
     );