composables/define_widget/auto_dispose library
Functions
-
autoContextDispose<
T extends ChangeNotifier> (T notifier) → T - Schedules a ChangeNotifier to be disposed automatically when the widget is unmounted.
-
autoContextDisposeFn(
VoidCallback fn) → VoidCallback - Schedules a function to be called automatically when the widget is unmounted.