CollectionDisposable<T> class
abstract
A Disposable that adds an
- Implemented types
Constructors
- CollectionDisposable.new(T _value)
-
CollectionDisposable.forList(List<
T> list, T value) -
Adds
value
tolist
and returns a Disposable that removes the value again on disposal.factory -
CollectionDisposable.forSet(Set<
T> set, T value) -
Adds
value
toset
and returns a Disposable that removes the value again on disposal.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Returns true, if this resource has been disposed.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Disposes the resource.
inherited
-
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