DanmakuOption class

Constructors

DanmakuOption({double fontSize = 16, double area = 1.0, double duration = 10, double opacity = 1.0, bool hideBottom = false, bool hideScroll = false, bool hideTop = false, bool borderText = true})

Properties

area double
显示区域,0.1-1.0
final
borderText bool
文本是否有边框
final
duration double
滚动弹幕运行时间,秒
final
fontSize double
默认的字体大小
final
hashCode int
The hash code for this object.
no setterinherited
hideBottom bool
隐藏底部弹幕
final
hideScroll bool
隐藏滚动弹幕
final
hideTop bool
隐藏顶部弹幕
final
opacity double
不透明度,0.1-1.0
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? fontSize, double? area, double? duration, double? opacity, bool? hideTop, bool? hideBottom, bool? hideScroll, bool? borderText}) DanmakuOption
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