flutter_timer_util 0.0.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A various timer utility package for debounce, throttle, repeat.

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>

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');
});