ScrollDanmakuPainter constructor
ScrollDanmakuPainter(})
Implementation
ScrollDanmakuPainter(
this.progress,
this.scrollDanmakuItems,
this.danmakuDurationInSeconds,
this.fontSize,
this.fontWeight,
this.showStroke,
this.danmakuHeight,
this.running,
this.tick, {
this.batchThreshold = 10, // 默认值为10,可以自行调整
}) : totalDuration = danmakuDurationInSeconds * 1000;