copyWith method

TrainingPreviewState copyWith({
  1. bool? noSound,
  2. bool? playing,
})

Implementation

TrainingPreviewState copyWith({bool? noSound, bool? playing}) =>
    TrainingPreviewState(
      preview: preview,
      document: document,
      scoreError: scoreError,
      noSound: noSound ?? this.noSound,
      playing: playing ?? this.playing,
    );