reassemble method

  1. @mustCallSuper
void reassemble()

Called when a hot reload has swapped this app's code.

Hot reload replaces method bodies in the live isolate and then re-runs build(); it never recreates a State or re-runs initState. Override this to re-derive whatever initState computed from code that may have just changed — a parsed table, a precomputed layout, a cached format — so a reloaded body is not left reading values the old body produced.

Never called in a release build. The tree is rebuilt whether or not this throws, so a failure here degrades the reload rather than aborting it.

Implementation

@mustCallSuper
void reassemble() {}