DebounceInvoker class

—— Debounce 实现(默认仅末尾触发,可配置 leading/trailing/maxWait)——

Constructors

DebounceInvoker.new(Function _fn, Duration _wait, {bool leading = false, bool trailing = true, Duration? maxWait})

Properties

hashCode int
The hash code for this object.
no setterinherited
leading bool
final
maxWait Duration?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailing bool
final

Methods

cancel() → void
flush() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
override
toString() String
A string representation of this object.
inherited

Operators

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