simple_throttle_debounce 1.0.0 simple_throttle_debounce: ^1.0.0 copied to clipboard
It's a simple pure dart package which implement throttle and debounce functionality, and it's a dart rewrite work of the original js version (https://programmingwithmosh.com/javascript/javascript-thro [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add simple_throttle_debounce
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
simple_throttle_debounce: ^1.0.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:simple_throttle_debounce/simple_throttle_debounce.dart';