AutomaticKeepAliveWidgetModelMixin<W extends ElementaryWidget<IWidgetModel>, M extends ElementaryModel> mixin

A mixin with convenience methods for clients of AutomaticKeepAlive. Used with WidgetModel subclasses.

Superclass Constraints

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isMounted bool
Whether WidgetModel and Elementary are currently mounted in the tree.
no setterinherited
model → M
Instance of ElementaryModel for this WidgetModel.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widget → W
Widget that uses this WidgetModel for building part of the user interface.
no setterinherited

Methods

activate() → void
Called when this WidgetModel and Elementary are reinserted into the tree after having been removed via deactivate.
inherited
deactivate() → void
Called when this WidgetModel and Elementary are removed from the tree.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency (by Build Context) of this Widget Model changes.
inherited
didUpdateWidget(W oldWidget) → void
Called whenever the widget configuration is changed.
inherited
dispose() → void
Called when Elementary with this WidgetModel is removed from the tree permanently. Should be used for preparation to be garbage collected.
inherited
initWidgetModel() → void
Called while the first build for initialization of this WidgetModel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onErrorHandle(Object error) → void
Called whenever ElementaryModel.handleError is called.
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.
inherited
setupTestElement(BuildContext? testElement) → void
Method for associate another element to this WidgetModel. MUST be used only for testing purposes.
inherited
setupTestWidget(W? testWidget) → void
Method for associate another instance of the widget to this WidgetModel. MUST be used only for testing purposes.
inherited
setupWantKeepAlive(bool value) → void
Setup new value of keeping alive.
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