CompositeDisposable class

Default implementation for ICompositeDisposable

Inheritance
Implemented types
Implementers
Available Extensions

Constructors

CompositeDisposable({DisposeOrder disposeOrder = DisposeOrder.lifo, bool catchExceptions = true, DisposableExceptionCallback? disposableExceptionCallback = printDisposableErrorToConsole})
Default constructor disposeOrder = DisposeOrder.lifo, [catchExceptions} = true, disposableExceptionCallback = printDisposableErrorToConsole,

Properties

catchExceptions bool
is need to try/catch each item dispose() call
final
disposableExceptionCallback DisposableExceptionCallback?
callback which executes on error catch during dispose catchExceptions should be enabled
final
disposables List<IDisposable>
Unmodifiable List of disposables to dispose
no setteroverride
disposeOrder DisposeOrder
Dispose Order: LIFO(preferable), FIFO, Parallel
final
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
is dispose was already called
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDisposable(IDisposable disposable) → void
add single disposables see also addDisposables
override
addDisposables(Iterable<IDisposable> disposables) → void
add several disposables see also addDisposable
override
dispose() Future<void>
free resources. Do nothing if isDisposed already true
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performDispose() Future<void>
actually dispose resources called in dispose() after isDisposed check
override
toString() String
A string representation of this object.
inherited

Operators

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