throttle method

void throttle(
  1. VoidCallback action
)

Implementation

void throttle(VoidCallback action) {
  _throttleTimer?.cancel();
  _throttleTimer = Timer(this, action);
}