Dart and Flutter classes have different methods to dispose and clean up.
Like cancel, stop, removeListener, etc.
This package define IDisposable
interface and special implementations for different types, like StreamControllerDisposable
You can use CompositeDisposable
& DisposableOwner
to group different IDisposable
Additionally disposeWith
extensions makes using disposables easier.
-
Notifications
You must be signed in to change notification settings - Fork 0
xal/easy_dispose
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Common interface to dispose different things. Always call dispose() instead of cancel(), stop(), etc.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published