DisposeBagBase class abstract
DisposeBag base interface.
- Implementers
Constructors
Properties
-
disposables
→ Set<
Object> -
Gets all disposable or empty set if this bag has been disposed or is disposing.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClearing → bool
-
Returns true if this bag is clearing.
no setter
- isDisposed → bool
-
Returns true if this bag has been disposed.
no setter
- length → int
-
Returns the number of currently held Disposables.
Return
0
if this bag has been disposed or is disposing.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Object disposable) → Future< bool> - Adds a disposable to this container or disposes it if this bag has been disposed or is disposing.
-
addAll(
Iterable< Object> disposables) → Future<void> - Atomically adds the given iterable of Disposables to this bag or disposes them all if this bag has been disposed or is disposing.
-
clear(
) → Future< void> - Atomically clears the container, then disposes all the previously contained Disposables. This method can be called multiple times.
-
delete(
Object disposable) → bool - Removes (but does not dispose) the given disposable if it is part of this container.
-
dispose(
) → Future< void> - Dispose the resource, the operation should be called once time.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Object disposable) → Future< bool> - Removes and disposes the given disposable if it is part of this container.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited