view_models/inqvine_view_model library

Classes

BaseViewModel

Functions

useViewModel<T extends BaseViewModel>(WidgetRef ref, T buildModel()) → T
Registers a class extending BaseViewModel inside of the locator. This can be called inside any view extending HookWidget, causing lifecycle events to be pushed to the view model.