reassemble method

  1. @protected
  2. @override
  3. @mustCallSuper
void reassemble()
inherited

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 con in _controllerList) {
    //
    con.reassemble();
  }

  super.reassemble();

  _setStateAllowed = true;

  /// No 'setState()' function is necessary
  /// The framework always calls build with a hot reload.
  _setStateRequested = false;
}