call method

void call(
  1. void action()
)

Executes the function immediately if not throttled, otherwise waits

Implementation

void call(void Function() action) {
  if (!_isThrottled) {
    action();
    _isThrottled = true;
    _timer = Timer(delay, () {
      _isThrottled = false;
    });
  }
}