BarrageWallValue.fromList constructor

BarrageWallValue.fromList(
  1. List<Bullet> bullets, {
  2. int showedTimeBefore = 0,
  3. List<Bullet> waitingList = const [],
})

Implementation

BarrageWallValue.fromList(List<Bullet> bullets,
    {this.showedTimeBefore = 0, this.waitingList = const []})
    : bullets = HashList<Bullet>(
          keyCalculator: (t) => Duration(milliseconds: t.showTime).inMinutes)
        ..appendByMinutes(bullets),
      size = bullets.length,
      processedSize = 0;