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