throttle method

void throttle(
  1. String key,
  2. void action(), {
  3. int milliseconds = 300,
})

Run a throttled action

Implementation

void throttle(String key, void Function() action, {int milliseconds = 300}) {
  throttler(key, milliseconds: milliseconds).run(action);
}