TimelineCompositionConfig class
Configures the output resolution and aspect ratio of a timeline composition.
Pass an instance to NativeTimelinePlayer.load or NativeTimelinePlayer.exportTimeline to control how clips are composed. Defaults to OutputAspectRatio.original at 1080 px wide.
- Annotations
Constructors
- TimelineCompositionConfig({OutputAspectRatio aspectRatio = OutputAspectRatio.original, int baseWidth = 1080})
-
Creates a TimelineCompositionConfig.
factory
Properties
- aspectRatio → OutputAspectRatio
-
The output aspect ratio used by the native compositor.
final
- baseWidth → int
-
Horizontal pixel count of the output canvas. Height is derived from
aspectRatio.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{OutputAspectRatio? aspectRatio, int? baseWidth}) → TimelineCompositionConfig -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override