copyWith method

Throttle copyWith({
  1. Duration? delay,
})

Creates a copy of this Throttle with the given fields replaced

Example:

final newThrottle = throttle.copyWith(delay: Duration(milliseconds: 200));

Implementation

Throttle copyWith({Duration? delay}) {
  return Throttle(delay ?? this.delay);
}