EventxxThrottle_c<T> class

Inheritance
Implementers

Constructors

EventxxThrottle_c({required Duration time, required void onListen(T val)?, bool fastFirstRun = false, bool dofastFirstRunEnd = true})
节流

Properties

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

Methods

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

Operators

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