TextTrackStyle class

Describes style information for a text track. Colors are represented as strings “#RRGGBBAA” where XX are the two hexadecimal symbols that represent the 0-255 value for the specific channel/color. It follows CSS 8-digit hex color notation. (See http://dev.w3.org/csswg/css-color/#hex-notation).

Constructors

TextTrackStyle({Color? backgroundColor, Map<String, dynamic>? customData, Color? edgeColor, TextTrackStyle? edgeType, String? fontFamily, TextTrackFontGenericFamily? fontGenericFamily, int? fontScale, TextTrackFontStyle? fontStyle, Color? foregroundColor, Color? windowColor, double? windowRoundedCornerRadius, TextTrackWindowType? windowType})
Creates a new TextTrackStyle.
TextTrackStyle.fromJson(String source)
Creates a TextTrackStyle from a JSON string.
factory
TextTrackStyle.fromMap(Map<String, dynamic> map)
Creates a TextTrackStyle from a map representation.
factory

Properties

backgroundColor → Color?
Background RGBA color, represented as "#RRGGBBAA". The alpha channel should be used for transparent backgrounds.
final
customData → Map<String, dynamic>?
Custom application data.
final
edgeColor → Color?
RGBA color for the edge, represented as "#RRGGBBAA". This value will be ignored if edgeType is NONE. Edge color for the text track.
final
edgeType → TextTrackStyle?
Edge type for the text track.
final
fontFamily → String?
If the font is not available in the receiver the fontGenericFamily will be used.
final
fontGenericFamily → TextTrackFontGenericFamily?
Generic font family for the text track.
final
fontScale → int?
The font scaling factor for the text track (the default is 1.0).
final
fontStyle → TextTrackFontStyle?
Font style for the text track.
final
foregroundColor → Color?
Foreground RGBA color, represented as "#RRGGBBAA".
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
windowColor → Color?
RGBA color for the window, represented as "#RRGGBBAA". This value will be ignored if windowType is NONE.
final
windowRoundedCornerRadius → double?
Rounded corner radius absolute value in pixels (px). This value will be ignored if windowType is not ROUNDED_CORNERS.
final
windowType → TextTrackWindowType?
The window concept is defined in CEA-608 and CEA-708, See http://goo.gl/M3ea0X. In WebVTT is called a region.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
Converts this text track style to a JSON string.
toMap() → Map<String, dynamic>
Converts this text track style to a map representation.
toString() → String
A string representation of this object.
inherited

Operators

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