ResizeMode enum
The different ways a video can be resized to fit its parent widget.
See also:
PlayerView.resizeMode, which controls how the video is resized.
Values
- fit → const ResizeMode
-
The video is resized to fit within its parent widget while maintaining its aspect ratio. Original video aspect ratio is preserved.
- stretch → const ResizeMode
-
The video is resized to fit the entire parent widget, without maintaining its aspect ratio. This may cause the video to be distorted.
- crop → const ResizeMode
-
The video is resized to fit the entire parent widget while maintaining its aspect ratio. This may cause some of the video to not be visible.
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<
ResizeMode> - A constant List of the values in this enum, in order of their declaration.