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
Extensions
- CompositeDisposableExtension on IDisposable
- add disposeWith to ICompositeDisposable
- CustomDisposableExtension on ICompositeDisposable
- addCustomDisposable method for ICompositeDisposable
- ICompositeDisposableExtension on ICompositeDisposable
- Additional logic to ICompositeDisposable interface
- StreamControllerDisposableExtension on StreamController
- add disposeWith to StreamController
- StreamSubscriptionDisposableExtension on StreamSubscription
- add disposeWith to StreamSubscription
- TimerDisposableExtension on Timer
- add disposeWith to Timer
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