FlutterDanmakuBulletModel class
Constructors
- FlutterDanmakuBulletModel({required UniqueKey id, required UniqueKey trackId, required String text, required Size bulletSize, required double offsetY, FlutterDanmakuBulletType bulletType = FlutterDanmakuBulletType.scroll, Color? color, UniqueKey? prevBulletId, int? offsetMS, Widget builder(Text)?, required FlutterDanmakuBulletPosition position})
Properties
- allOutLeave → bool
-
子弹整体离开屏幕
no setter
- allOutRight → bool
-
子弹整体脱离右边墙壁
no setter
- builder ↔ Widget Function(Text)?
-
getter/setter pair
- bulletSize ↔ Size
-
getter/setter pair
- bulletType ↔ FlutterDanmakuBulletType
-
getter/setter pair
- color ↔ Color?
-
getter/setter pair
- everyFrameRunDistance ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ UniqueKey
-
getter/setter pair
- leaveScreenRemainderTime → double
-
离开屏幕剩余需要的时间
no setter
- maxRunDistance → double
-
子弹最大可跑距离 子弹宽度+墙宽度
no setter
- needRunDistace → double
-
需要走的距离
no setter
- offsetX → double
-
子弹的x轴位置
no setter
- offsetY ↔ double
-
getter/setter pair
- position ↔ FlutterDanmakuBulletPosition
-
getter/setter pair
- prevBulletId ↔ UniqueKey?
-
getter/setter pair
- remanderDistance → double
-
剩余离开的距离
no setter
- runDistance → double
-
子弹当前执行的距离
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
getter/setter pair
- trackId ↔ UniqueKey
-
getter/setter pair
Methods
-
completeSize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebindTrack(
FlutterDanmakuTrack track) → void -
runNextFrame(
) → void - 子弹执行下一帧
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited