dart_debouncer
1.1.1, released 2 years ago by an unverified publisher
Multi-instance debounce utility for Dart with custom durations and execution controls.
What it does
Provides a Debouncer class that allows managing multiple debounce instances without a singleton pattern. It supports custom timer durations, init/end hooks, guaranteed sequential execution, and timer status checks.
AI-written summary of version 1.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to debounce user inputs or button presses
- You require multiple independent debouncer instances
Skip it when
- You are looking for stream-based debouncing operators
Strengths
- Supports multiple instances without singletons
- Includes initialization and end callback hooks
- Provides guaranteed execution after debounce finishes
Weaknesses
- Manual disposal of timers may be required to avoid errors
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final Debouncer debouncer = Debouncer();
debouncer.resetDebounce(() {
// Do something
});
debouncer.dispose();Alternatives
Packages that do the same job and could replace dart_debouncer.
- global_configs
Flutter package to manage app configurations via a singleton pattern.
39Compare - android_notification_icons
Generate Android notification icons from a source image
50Compare
Works with
Packages commonly used together with dart_debouncer: ones it builds on, ones built on it, and its own family.