easy_debounce
2.0.3, released 4 years ago by magnuswikhog.com
An easy-to-use method call debouncer and throttler package for Dart and Flutter.
WASM-ready
What it does
Provides a straightforward mechanism to debounce or throttle function calls using unique tags. It handles delaying or ignoring subsequent calls over specified durations.
AI-written summary of version 2.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to debounce text input search queries to prevent excessive network requests.
- You want to throttle button taps to prevent duplicate actions.
Skip it when
- You require complex reactive stream-based operators instead of simple timer-based wrappers.
Strengths
- Extremely easy to use with static tag-based methods.
- Supports both debouncing and throttling.
- Pure Dart package with no external dependencies.
Weaknesses
- Relies on global tags which might lead to naming collisions in large applications.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
EasyDebounce.debounce(
'my-debouncer',
Duration(milliseconds: 500),
() => myMethod()
);Alternatives
Packages that do the same job and could replace easy_debounce.
- isolated_object
Wraps an object in a dedicated isolate and forwards method calls to it
79Compare
Works with
Packages commonly used together with easy_debounce: ones it builds on, ones built on it, and its own family.