auto_disposal 0.0.2
auto_disposal: ^0.0.2 copied to clipboard
A Flutter package that provides a mixin to automatically dispose of common resources in StatefulWidgets, reducing boilerplate and preventing memory leaks.
Changelog #
0.0.2 #
- Add
debugModeflag toAutoDisposalMixinto enable debug logging of registered resources. - Add
nameparameter to disposable resources to help identify them in debug logs.
0.0.1 #
- Initial release of
auto_disposal. - Added
AutoDisposalMixinto auto-clean common Flutter resources indispose(). - Added support for custom cleanup via
autoDisposeCallback(...). - Added example app demonstrating
TextEditingControllerandStreamControllerregistration. - Widget tests verifying proper disposal of registered resources.