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})
TextTrackStyle.fromJson(String source)
factory
TextTrackStyle.fromMap(Map<String, dynamic> map)
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.
final
edgeType TextTrackStyle?
final
fontFamily String?
If the font is not available in the receiver the fontGenericFamily will be used.
final
fontGenericFamily TextTrackFontGenericFamily?
final
fontScale int?
The font scaling factor for the text track (the default is 1.0).
final
fontStyle TextTrackFontStyle?
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
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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