MyEventDebounceThrottle_c<T> class
- Inheritance
-
- Object
- MyEventBase_c<
T> - MyEventThrottle_c<
T> - MyEventDebounceThrottle_c
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