render abstract method

Future<T> render({
  1. required Widget composition,
  2. required Aspect aspect,
  3. required Duration duration,
  4. int fps,
  5. int longEdge,
  6. bool audio,
  7. bool warnOnDroppedAudio,
  8. String compositionKey,
  9. RenderProgressCallback? onProgress,
})

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,
});