SubtitleStyleConfig class

字幕样式配置

Constructors

SubtitleStyleConfig({TextStyle textStyle = const TextStyle(fontSize: 16, color: Colors.white, backgroundColor: Colors.transparent, fontWeight: FontWeight.normal), EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 1), EdgeInsets margin = const EdgeInsets.all(1.0), BoxDecoration? decoration = const BoxDecoration(color: Colors.transparent, borderRadius: BorderRadius.all(Radius.circular(6))), double? maxWidth, int? maxLines, TextOverflow overflow = TextOverflow.clip})
const

Properties

decoration BoxDecoration?
final
hashCode int
The hash code for this object.
no setterinherited
margin EdgeInsets
final
maxLines int?
final
maxWidth double?
final
overflow TextOverflow
final
padding EdgeInsets
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle
final

Methods

copyWith({TextStyle? textStyle, EdgeInsets? padding, EdgeInsets? margin, BoxDecoration? decoration, double? maxWidth, int? maxLines, TextOverflow? overflow}) SubtitleStyleConfig
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