copyWith method

ReplayState copyWith({
  1. int? currentIndex,
  2. bool? isPlaying,
  3. Duration? playbackSpeed,
})

Implementation

ReplayState copyWith({
  int? currentIndex,
  bool? isPlaying,
  Duration? playbackSpeed,
}) => ReplayState(
  sessionId: sessionId,
  entries: entries,
  currentIndex: currentIndex ?? this.currentIndex,
  isPlaying: isPlaying ?? this.isPlaying,
  playbackSpeed: playbackSpeed ?? this.playbackSpeed,
);