copyWith method
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,
);
}