DisposeBagMixin mixin

DisposeBagMixin,用于在 State 中统一管理所有的 Subscription 和其他需要 dispose 的对象

Superclass constraints
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
检查是否已销毁
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDisposeCallback(DisposeHandler callback) → void
添加销毁回调
addDisposeCallbacks(List<DisposeHandler> callbacks) → void
添加多个销毁回调
addSubscription<T>(StreamSubscription<T> subscription) StreamSubscription<T>
添加订阅到 dispose bag
addSubscriptions(List<StreamSubscription> subscriptions) → void
添加多个订阅到 dispose bag
dispose() → void
override
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