easy_dispose library Null safety

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

Mixins

DisposableMixin
Mixin with isDisposed check before performDispose call

Extensions

CompositeDisposableExtension
add disposeWith to ICompositeDisposable
CustomDisposableExtension
addCustomDisposable method for ICompositeDisposable
ICompositeDisposableExtension
Additional logic to ICompositeDisposable interface
StreamControllerDisposableExtension
add disposeWith to StreamController
StreamSubscriptionDisposableExtension
add disposeWith to StreamSubscription
TimerDisposableExtension
add disposeWith to Timer

Functions

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

Enums

DisposeOrder
ICompositeDisposable disposables dispose order

Typedefs

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