auto_dispose_mixin 1.1.0
auto_dispose_mixin: ^1.1.0 copied to clipboard
A lightweight Flutter mixin that automatically disposes controllers, subscriptions, and other resources to prevent memory leaks.
Changelog #
1.1.0 - 2026-03-06 #
Features #
- Massive Disposable Support Support Expansion: Added native support for exhaustive list of Flutter standard interfaces, including
OverlayEntry,StreamController,IOSink,EventSink, andWebSocketclosures viaSink. - Advanced Duck Typing: In addition to
dispose(), the reflection matcher now safely checks for and triggers.cancel(),.close(), and.kill(). This naturally covers timers, isolates, workers, and thousands of 3rd party controllers (e.g., GetXWorker,ReceivePort,PersistentBottomSheetController) without boilerplate.
1.0.0 - 2026-02-17 #
Initial Release #
- Added
AutoDisposeMixinfor automatic resource cleanup - Supports
ChangeNotifier,AnimationController,ScrollController,StreamSubscription, and more - Added
registerForDispose()andregisterDisposeCallback() - DevTools logging and performance tracking support
- Ticker-safe disposal handling
- Included example project and full documentation