auto_dispose_mixin 1.1.0 copy "auto_dispose_mixin: ^1.1.0" to clipboard
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, and WebSocket closures via Sink.
  • 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., GetX Worker, ReceivePort, PersistentBottomSheetController) without boilerplate.

1.0.0 - 2026-02-17 #

Initial Release #

  • Added AutoDisposeMixin for automatic resource cleanup
  • Supports ChangeNotifier, AnimationController, ScrollController, StreamSubscription, and more
  • Added registerForDispose() and registerDisposeCallback()
  • DevTools logging and performance tracking support
  • Ticker-safe disposal handling
  • Included example project and full documentation

1
likes
160
points
217
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter mixin that automatically disposes controllers, subscriptions, and other resources to prevent memory leaks.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_dispose_mixin