Last updated:
0 purchases
flutter timer util
A various timer utility package for debounce, throttle, repeat.
Features #
Debouncing
Repeater
Throttling
Getting started #
In the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
flutter_timer_util: <latest_version>
copied to clipboard
Usage #
// create debouncing
final debouncing = FlutterTimerUtil.debouncing(
interval: Duration(seconds: 1)
);
// set callback
// The callback method is executed after the call has been invoked, following the specified time duration, [inteval].
debouncing.call(() {
print('print after 1 seconds');
});
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.