EventSubscription<T> class

异步删除防止在迭代器中操作元素

Constructors

EventSubscription({required Map<int, dynamic> map})

Properties

completer Completer<T>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
map Map<int, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

free() → dynamic
listen(EventCallback<T> callback) EventSubscription<T>
监听事件回调
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wait() Future<T>
使用fluttery异步实现 ,注意!!!!回调一次之后会自动销毁

Operators

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