TaskEntry<T> class
- Available Extensions
Constructors
-
TaskEntry({required EventCallback<
T> callback, required EventQueue queue, Object? taskKey, bool isOvserve = false, bool onlyLast = false})
Properties
-
callback
→ EventCallback<
T> -
具体的任务回调
final
- canDiscard → bool
-
no setter
-
future
→ Future<
T> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignore → bool
-
no setter
- ignoreOrNull → bool
-
no setter
- isOvserve → bool
-
final
- notIgnore → bool
-
no setter
- notIgnoreOrNull → bool
-
no setter
- onlyLast → bool
-
onlyLast == true 并且不是任务队列的最后一个任务,才会被抛弃
不管 onlyLast 为任何值,最后一个任务都会执行
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- taskKey → Object?
-
final
-
thenAwait
→ EventCallback<
T> ? -
no setter
- value ↔ dynamic
-
可通过EventQueue.currentTask访问、修改;
作为数据、状态等
getter/setter pair
Methods
-
addLast(
) → void - 从 EventQueue.currentTask 访问
-
isCurrentQueue(
EventQueue queue) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited