copyWith method
Returns a copy with the given values replaced.
Implementation
VideoPlaybackState copyWith({
bool? initialized,
bool? playing,
Duration? position,
Duration? duration,
Size? size,
Object? error,
}) => VideoPlaybackState(
initialized: initialized ?? this.initialized,
playing: playing ?? this.playing,
position: position ?? this.position,
duration: duration ?? this.duration,
size: size ?? this.size,
error: error ?? this.error,
);