function_filter
2.4.2, released 10 months ago by mopriestt.com
Zero-dependency Dart library for debouncing, throttling, rate limiting and call aggregation.
What it does
Provides tools for debouncing, throttling, rate limiting, and call aggregation of function executions. Offers both static methods and object wrappers to manage function execution timing based on time intervals.
AI-written summary of version 2.4.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to debounce search input fields to limit API requests.
- You want to throttle button clicks to prevent duplicate submissions.
- You need to manage rate limits or batch aggregate function calls.
Skip it when
- You prefer heavy reactive streams (like RxDart) for asynchronous event composition.
Strengths
- Zero external dependencies and lightweight weight.
- Supports using any object as a debounce/throttle key to prevent collisions.
- Provides both static methods and lifecycle-safe object wrappers.
Weaknesses
- Not tied into reactive stream ecosystems natively.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
FunctionFilter.debounce(
this,
const Duration(milliseconds: 500),
() {
apiClient.search(query);
},
);Alternatives
Packages that do the same job and could replace function_filter.
- gtk
GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.
76Compare - async
Utility classes and helpers that extend Dart's async library.
83Compare - flutter_flavorizr
A utility to easily create and configure application flavors in Flutter.
86Compare - black_hole_flutter
Flutter utility functions, extension methods, and custom widgets.
83Compare