easy_dispose library

Classes

CompositeDisposable
Default implementation for ICompositeDisposable
CustomDisposable
Executes disposeCallback when IDisposable.dispose called
Disposable
Base disposable implementation with isDisposed check before performDispose call
DisposableOwner
just title alias for CompositeDisposable for backward compatibility
ICompositeDisposable
Dispose several disposables
IDisposable
Base disposable interface
StreamControllerDisposable
Disposable implementation for StreamController
StreamSubscriptionDisposable
Disposable implementation for StreamSubscription
TimerDisposable
Disposable implementation for Timer

Enums

DisposeOrder
ICompositeDisposable disposables dispose order

Mixins

DisposableMixin
Mixin with isDisposed check before performDispose call

Functions

printDisposableErrorToConsole(IDisposable disposable, dynamic error, StackTrace? stackTrace) → void
default implementation for ICompositeDisposable.disposableExceptionCallback

Typedefs

DisposableExceptionCallback = FutureOr<void> Function(IDisposable disposable, dynamic error, StackTrace stackTrace)
Function defined for ICompositeDisposable.disposableExceptionCallback
DisposeCallback = FutureOr<void> Function()
Define function for CustomDisposable.disposeCallback