copyWith method

ProgressBarState copyWith({
  1. Duration? current,
  2. Duration? buffered,
  3. Duration? total,
})

Implementation

ProgressBarState copyWith({
  Duration? current,
  Duration? buffered,
  Duration? total,
}) {
  return ProgressBarState(
    current: current ?? this.current,
    buffered: buffered ?? this.buffered,
    total: total ?? this.total,
  );
}