render abstract method
Renders composition for aspect over duration and returns the
encoded result.
fps and duration set the frame count; longEdge sets the canvas's
longer side in pixels (the shorter side is derived from aspect).
audio opts a Video's declared Audio tracks into the encode; when a
composition declares audio the renderer drops, it warns once unless
warnOnDroppedAudio is false. onProgress observes the capturing,
encoding, and complete phases; compositionKey labels them.
Implementation
Future<T> render({
required Widget composition,
required Aspect aspect,
required Duration duration,
int fps,
int longEdge,
bool audio,
bool warnOnDroppedAudio,
String compositionKey,
RenderProgressCallback? onProgress,
});