get_it_listenable_widget 0.1.0
get_it_listenable_widget: ^0.1.0 copied to clipboard
A ListenableWidget that resolves its ViewModel from GetIt, with optional factory params.
0.1.0 #
- Initial release.
GetItListenableWidget<VM, P1, P2>— aListenableWidgetthat resolves its ViewModel from GetIt, forwardingparam1/param2/instanceNameand supporting a customGetItinstance.GetItListenableWidgetBuilder<VM, P1, P2>— inline builder variant.autoDisposedefaults totrue(widget owns the ViewModel); passfalsefor shared singletons.assignContextcontrols whether the widget assigns itsBuildContexttoViewModel.context. Defaults toautoDispose, so shared singletons do not have their context overwritten; pass it explicitly to override.