MVVMProps<T extends ViewModel> class

Inheritance

Constructors

MVVMProps({required Widget view(), 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
view Widget Function()
A builder function for the View widget.
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