ReassemblableModel class abstract
Optional interface for models that support hot-reload reassembly.
When a model implements ReassemblableModel, Program.performReassemble calls reassemble before re-rendering. This gives the model a chance to invalidate internal caches, mark element trees dirty, or perform any other bookkeeping needed so that the next Model.view call produces fresh output that reflects the reloaded code.
This follows the same opt-in pattern as FrameTickModel and RenderMetricsModel.
WidgetApp implements this interface to mark its entire element tree dirty
and clear its cached view, ensuring that widget build() methods are
re-executed after a hot reload.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void - Called by the runtime immediately before re-rendering after a hot reload.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited