reassemble method
During development, if a hot reload occurs, the reassemble method is called. This provides an opportunity to reinitialize any data that was prepared in the initState method.
Implementation
@protected
@override
@mustCallSuper
void reassemble() {
/// No 'setState()' functions are allowed to fully function at this point.
_setStateAllowed = false;
for (final listener in _beforeList) {
listener.reassemble();
}
for (final con in _controllerList) {
//
con.reassemble();
}
for (final listener in _afterList) {
listener.reassemble();
}
super.reassemble();
_setStateAllowed = true;
/// No 'setState()' function is necessary
/// The framework always calls build with a hot reload.
_setStateRequested = false;
}