throttling 0.9.0
throttling: ^0.9.0 copied to clipboard

Dart native js
Flutter Android iOS Linux macOS web Windows

contain "throttling" and "debouncing" async helper classes with listeners for flutter

THROTTLING DART LIBRARY #

contain "throttling" and "debouncing" classes

pub package

Using #

See demonstration of use on the dartpad.dartlang.org

Throttling example #

final Throttling thr = new Throttling(duration: Duration(seconds: 2));
thr.throttle(() {print(' *ping #1');});
await Future.delayed(Duration(seconds: 1));
thr.throttle(() {print(' *ping #2');});
await Future.delayed(Duration(seconds: 1));
thr.throttle(() {print(' *ping #3');});

Debouncing example #

final Debouncing deb = new Debouncing(duration: Duration(seconds: 2));
deb.debounce(() {print(' *ping #1');});
await Future.delayed(Duration(seconds: 1));
deb.debounce(() {print(' *ping #2');});
await Future.delayed(Duration(seconds: 1));
deb.debounce(() {print(' *ping #3');});
8
likes
90
pub points
87%
popularity

Publisher

plugfox.dev

contain "throttling" and "debouncing" async helper classes with listeners for flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on throttling