VideoRenderMode enum

Video rendering scale mode.

Inheritance
Available extensions

Values

hidden → const VideoRenderMode

Fill and Crop.

The video frame is scaled with fixed aspect ratio, until it completely fills the canvas. The region of the video exceeding the canvas will be cropped.

fit → const VideoRenderMode

Fit.

The video frame is scaled with fixed aspect ratio, until it fits just within the canvas. Other part of the canvas is filled with the background color.

adaptive → const VideoRenderMode

Fill the canvas.

The video frame is scaled to fill the canvas. During the process, the aspect ratio may change.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<VideoRenderMode>
A constant List of the values in this enum, in order of their declaration.