flutter_throttle_debounce 0.0.1 copy "flutter_throttle_debounce: ^0.0.1" to clipboard
flutter_throttle_debounce: ^0.0.1 copied to clipboard

A comprehensive debouncing and throttling utility for search, API calls, and user interactions in Flutter applications.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.0.1 - 2024-01-01 #

Added #

  • Initial release of flutter_throttle_debounce package
  • Debouncer class for debouncing function calls with customizable delay
  • Throttler class for throttling function calls with customizable interval
  • SearchDebouncer specialized class for search input debouncing
  • ApiThrottler specialized class for API call throttling
  • Comprehensive documentation and examples
  • Support for all Flutter platforms (Android, iOS, Web, Desktop)
  • Complete test coverage
  • Performance optimizations for high-frequency operations

Features #

  • Debouncing: Delays function execution until after a specified time has passed since the last invocation
  • Throttling: Ensures function is called at most once per specified time interval
  • Search Optimization: Specialized debouncer for search inputs with configurable minimum query length
  • API Rate Limiting: Built-in throttling for API calls to prevent rate limit violations
  • Memory Efficient: Automatic cleanup and cancellation of pending operations
  • Type Safe: Full Dart type safety with generic support
  • Platform Agnostic: Works across all Flutter supported platforms
  • Zero Dependencies: No external dependencies beyond Flutter SDK
1
likes
160
points
21
downloads

Publisher

verified publisherbechattaoui.dev

Weekly Downloads

A comprehensive debouncing and throttling utility for search, API calls, and user interactions in Flutter applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#debounce #throttle #performance #search #api

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_throttle_debounce