MyEventDebounceThrottle_c<T> class

Inheritance

Constructors

MyEventDebounceThrottle_c({required Duration debounceTime, required Duration time, required void onListen(T val)?, required void onDebounceListen(T), bool fastFirstRun = true})
节流版防抖

Properties

debounce MyEventDebounce_c<T>
latefinal
dofastFirstRunEnd bool
是否在启用fastFirstRun后,保留最后一个_value在限制结束后触发
finalinherited
fastFirstRun bool
当未限流时得到通知是否马上触发onListen
finalinherited
hashCode int
The hash code for this object.
no setterinherited
onListen → void Function(T val)?
执行
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time Duration
间隔时间
finalinherited

Methods

clear({required bool doOnListen, required T value}) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(T in_value) bool
通知值
inherited
toString() String
A string representation of this object.
inherited

Operators

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