FlutterDanmakuController class
Constructors
Properties
-
bullets
→ List<
FlutterDanmakuBulletModel> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inited → bool
-
是否初始化过
no setter
- isPause → bool
-
是否暂停
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setState ↔ Function
-
getter/setter pair
-
tracks
→ List<
FlutterDanmakuTrack> -
no setter
Methods
-
addDanmaku(
String text, {FlutterDanmakuBulletType bulletType = FlutterDanmakuBulletType.scroll, Color? color, Widget builder(Text)?, int? offsetMS, FlutterDanmakuBulletPosition position = FlutterDanmakuBulletPosition.any}) → AddBulletResBody -
changeBulletTextSize(
int size) → void - 修改文字大小
-
changeOpacity(
double opacity) → void - 修改透明度
-
changeRate(
double rate) → void - 修改弹幕速率
-
changeShowArea(
double percent) → void - 修改弹幕最大可展示场景的百分比
-
clearScreen(
) → void -
delBulletById(
UniqueKey bulletId) → void - 请不要调用这个函数
-
dispose(
) → void - 清除定时器
-
init(
Size size) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void - 暂停
-
play(
) → void - 播放
-
resizeArea(
Size size) → void - 改变视图尺寸后调用,比如全屏
-
setBulletTapCallBack(
dynamic cb(FlutterDanmakuBulletModel)) → void - 设置子弹单击事件
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited