copyWith method

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

Creates a copy of this Debounce with the given fields replaced

Example:

final newDebounce = debounce.copyWith(delay: Duration(milliseconds: 500));

Implementation

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