DanmakuController class
Constructors
- DanmakuController({required dynamic onAddDanmaku(DanmakuContentItem), required dynamic onUpdateOption(DanmakuOption), required Function onPause, required Function onResume, required Function onClear})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAddDanmaku → dynamic Function(DanmakuContentItem)
-
final
- onClear → Function
-
final
- onPause → Function
-
final
- onResume → Function
-
final
- onUpdateOption → dynamic Function(DanmakuOption)
-
final
- option ↔ DanmakuOption
-
getter/setter pair
- running ↔ bool
-
是否运行中
可以调用pause()暂停弹幕
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDanmaku(
DanmakuContentItem item) → void - 添加弹幕
-
clear(
) → void - 清空弹幕
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - 暂停弹幕
-
resume(
) → void - 继续弹幕
-
toString(
) → String -
A string representation of this object.
inherited
-
updateOption(
DanmakuOption option) → void - 更新弹幕配置
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited