copyWith method

VideoPlaybackState copyWith({
  1. bool? initialized,
  2. bool? playing,
  3. Duration? position,
  4. Duration? duration,
  5. Size? size,
  6. Object? error,
})

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,
);