XVideoExportRequest constructor
const
XVideoExportRequest({})
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',
);