AdaptiveDebouncer class
🚀 Adaptive Debouncer - Intelligently adjusts delay for blazing fast UX
This smart debouncer reduces delay for fast typers and increases for slow typers, providing the optimal balance between performance and user experience.
- Implementers
Constructors
- AdaptiveDebouncer.new({Duration minDelay = const Duration(milliseconds: 50), Duration maxDelay = const Duration(milliseconds: 300), Duration fastTypingThreshold = const Duration(milliseconds: 150)})
Properties
- currentDelay → Duration
-
Get current adaptive delay (for debugging/monitoring)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFastTyping → bool
-
Check if fast typing is detected
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
void action()) → void - Execute action with smart delay adaptation
-
cancel(
) → void - Cancel any pending action
-
dispose(
) → void - Dispose resources
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited