copyWith method

TPStreamsPlayerValue copyWith({
  1. bool? isLoading,
  2. Duration? duration,
  3. Duration? position,
  4. bool? isPlaying,
  5. bool? isBuffering,
  6. bool? isEnded,
  7. bool? isFullScreen,
  8. TPStreamsError? error,
})

Implementation

TPStreamsPlayerValue copyWith({
  bool? isLoading,
  Duration? duration,
  Duration? position,
  bool? isPlaying,
  bool? isBuffering,
  bool? isEnded,
  bool? isFullScreen,
  TPStreamsError? error,
}) {
  return TPStreamsPlayerValue(
    isLoading: isLoading ?? this.isLoading,
    duration: duration ?? this.duration,
    position: position ?? this.position,
    isPlaying: isPlaying ?? this.isPlaying,
    isBuffering: isBuffering ?? this.isBuffering,
    isEnded: isEnded ?? this.isEnded,
    isFullScreen: isFullScreen ?? this.isFullScreen,
    error: error ?? this.error,
  );
}