copyWith method

TrainingsState copyWith({
  1. Map<SightTrack, SightProgress>? progress,
  2. SightTrack? last,
  3. bool? showInvite,
})

Implementation

TrainingsState copyWith({
  Map<SightTrack, SightProgress>? progress,
  SightTrack? last,
  bool? showInvite,
}) => TrainingsState(
  progress: progress ?? this.progress,
  last: last ?? this.last,
  showInvite: showInvite ?? this.showInvite,
);