SubtitleConfig class

完整的字幕配置

Constructors

SubtitleConfig({SubtitleStyleConfig styleConfig = const SubtitleStyleConfig(), EdgeInsets position = const EdgeInsets.only(bottom: 0), bool enableAnimation = false, Duration animationDuration = const Duration(milliseconds: 300), Curve animationCurve = Curves.easeInOut})
const

Properties

animationCurve → Curve
final
animationDuration → Duration
final
enableAnimation → bool
final
hashCode → int
The hash code for this object.
no setterinherited
position → EdgeInsets
字幕位置偏移
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
styleConfig → SubtitleStyleConfig
final

Methods

copyWith({SubtitleStyleConfig? styleConfig, EdgeInsets? position, bool? enableAnimation, Duration? animationDuration, Curve? animationCurve}) → SubtitleConfig
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