copyWith method

BarrageWallValue copyWith({
  1. required int processedSize,
  2. int? showedTimeBefore,
  3. List<Bullet>? waitingList,
})

Implementation

BarrageWallValue copyWith({
  // int lastProcessedTime,
  required int processedSize,
  int? showedTimeBefore,
  List<Bullet>? waitingList,
}) =>
    BarrageWallValue(
      bullets: bullets,
      showedTimeBefore: showedTimeBefore ?? this.showedTimeBefore,
      waitingList: waitingList ?? this.waitingList,
      size: this.size,
      processedSize: this.processedSize + processedSize,
    );