copyWith method

ChartRoundState copyWith({
  1. Map<ChartSlot, Color>? colors,
  2. Map<int, HeardNote>? heard,
  3. String? message,
  4. bool? started,
  5. int? echoClosed,
  6. int? scoreBar,
  7. RoundResult? finished,
  8. int? serial,
})

Implementation

ChartRoundState copyWith({
  Map<ChartSlot, Color>? colors,
  Map<int, HeardNote>? heard,
  String? message,
  bool? started,
  int? echoClosed,
  int? scoreBar,
  RoundResult? finished,
  int? serial,
}) => ChartRoundState(
  colors: colors ?? this.colors,
  heard: heard ?? this.heard,
  message: message ?? this.message,
  started: started ?? this.started,
  echoClosed: echoClosed ?? this.echoClosed,
  scoreBar: scoreBar ?? this.scoreBar,
  finished: finished ?? this.finished,
  serial: serial ?? this.serial,
);