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