throttle method

void throttle({
  1. int milliseconds = kDefaultThrottlerDuration,
})

Throttles the function with a certain delay.

Implementation

void throttle({int milliseconds = kDefaultThrottlerDuration}) {
  final throttler = Throttle(milliseconds: milliseconds);
  throttler.run(call);
}