HighFrequencyThrottler class

Optimized for high-frequency events (16-32ms intervals like scroll/resize). Uses DateTime.now() comparison instead of Timer objects for reduced overhead.

Constructors

HighFrequencyThrottler({Duration duration = defaultDuration})

Properties

duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
isThrottled bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(VoidCallback callback) bool
Execute callback if not throttled. Returns true if executed.
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
toString() String
A string representation of this object.
inherited
wrap(VoidCallback? callback) VoidCallback?
Wrap a nullable callback for use with listeners.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultDuration → const Duration