throttled method

Throttle throttled(
  1. Duration wait, {
  2. bool leading = true,
  3. bool trailing = true,
})

Converts this into a Throttle function.

Implementation

Throttle throttled(
  Duration wait, {
  bool leading = true,
  bool trailing = true,
}) =>
    Throttle(
      this,
      wait,
      leading: leading,
      trailing: trailing,
    );