copyWith method

ScoreMarkState copyWith({
  1. bool? loading,
  2. String? error,
  3. bool clearError = false,
  4. bool? playing,
})

Implementation

ScoreMarkState copyWith({
  bool? loading,
  String? error,
  bool clearError = false,
  bool? playing,
}) => ScoreMarkState(
  loading: loading ?? this.loading,
  error: clearError ? null : (error ?? this.error),
  playing: playing ?? this.playing,
);