flutter_debounce_kit 0.1.0
flutter_debounce_kit: ^0.1.0 copied to clipboard
A flexible and lightweight debouncer for Flutter and Dart apps with multiple strategies and mixin support.
Changelog #
All notable changes to flutter_debouncer_kit will be documented here.
This project adheres to Semantic Versioning.
##Beta_version
0.1.0 #
Initial release.
Added #
Debouncer— core class with configurable delay and pluggable strategy.DebouncerConfig— immutable configuration (delay, label, edge flags).DebouncerStrategy— abstract base for custom strategies.TrailingEdgeStrategy— fires after the last call (default).LeadingEdgeStrategy— fires immediately, then locks for the cooldown.BothEdgeStrategy— fires on both the first and last call.DebouncerMixin— auto-managed debouncer forStatefulWidget.debounced()extension onvoid Function()andvoid Function(A).LifecycleHooks—onFire,onCancel,onDisposecallbacks.DebouncerLogger— optional debug logger with three verbosity levels.Disposablemixin — safe disposal withStateErroron post-dispose use.- Full test suite using
fake_async.