MVVMBuilderProps<T extends ViewModel> class

Inheritance

Constructors

MVVMBuilderProps({required Widget viewBuilder(BuildContext, T), required T viewModel, required bool disposeVM})

Properties

disposeVM bool
To dispose the viewModel when the provider is removed from the widget tree.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewBuilder Widget Function(BuildContext, T)
A builder function for the View widget, it also has access to the viewModel.
final
viewModel → T
The view model of the view.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited