DanmakuController class

Constructors

DanmakuController({required dynamic onAddItems(List<DanmakuItem>), required dynamic onUpdateOption(DanmakuOption), required Function onPause, required Function onResume, required Function onClear})

Properties

hashCode int
The hash code for this object.
no setterinherited
onAddItems → dynamic Function(List<DanmakuItem>)
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

addItems(List<DanmakuItem> 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