debounced method

Debounce debounced(
  1. Duration wait, {
  2. bool leading = false,
  3. bool trailing = true,
  4. Duration? maxWait,
})

Converts this into a Debounce function.

Implementation

Debounce debounced(
  Duration wait, {
  bool leading = false,
  bool trailing = true,
  Duration? maxWait,
}) =>
    Debounce(
      this,
      wait,
      leading: leading,
      trailing: trailing,
      maxWait: maxWait,
    );