SerialDisposable<T> class
A disposable resource whose underlying resource can be replaced by another resource causing automatic disposal of the previous underlying resource.
- Implementers
Constructors
-
SerialDisposable(Future<
Unit> _dispose(T))
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Returns whether or not the underlying resource is disposed
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Dispose underlying resource
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
T newValue) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited