StyleConfig class

Configures visual presentation and behaviour of the Player UI.

Inheritance
Annotations

Constructors

StyleConfig({bool isUiEnabled = true, bool isHideFirstFrame = false, String? playerUiCss, String? playerUiJs, String? supplementalPlayerUiCss, ScalingMode scalingMode = ScalingMode.fit})
const
StyleConfig.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isHideFirstFrame bool
Whether the first frame of the main content will be rendered before playback starts. Default value is false.
final
isUiEnabled bool
Whether the Player UI is enabled. Default value is true.
final
playerUiCss String?
Optional URI pointing to the CSS file that should be used for the Player UI instead of the default CSS file.
final
playerUiJs String?
Optional URI pointing to the JS file that should be used for the Player UI instead of the default JS file.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalingMode ScalingMode
Specifies how the video content is scaled or stretched within the parent container's bounds. Default value is ScalingMode.fit.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
supplementalPlayerUiCss String?
Optional URI pointing to the supplemental CSS file that will be used for the Player UI. The contained styles will be added to the CSS file specified in playerUiCss.
final

Methods

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.
inherited