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. Object? error = _noErrorUpdate,
})

Implementation

TPStreamsPlayerValue copyWith({
  bool? isLoading,
  Duration? duration,
  Duration? position,
  bool? isPlaying,
  bool? isBuffering,
  bool? isEnded,
  bool? isFullScreen,
  Object? error = _noErrorUpdate,
}) {
  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: identical(error, _noErrorUpdate) ? this.error : error as TPStreamsError?,
  );
}