ViewModel class abstract
- Mixed-in types
- Implementers
Constructors
- ViewModel.new(BuildContext context)
Properties
- context → BuildContext
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMounted → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activate(
) → void - Called when this ViewModel and BaseView are reinserted into the tree after having been removed via deactivate.
-
deactivate(
) → void - Called when this ViewModel and BaseView are removed from the tree.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void - Called when a dependency (by Build Context) of this View Model changes.
-
dispose(
) → void - Called when BaseView with this ViewModel is removed from the tree permanently. Should be used for preparation to be garbage collected.
-
initState(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void - Called whenever the application is reassembled during debugging, for example during hot reload. Most cases therefore do not need to do anything in the reassemble method.
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited