updateNewStateX method

  1. @override
  2. @mustCallSuper
void updateNewStateX(
  1. covariant StateX<StatefulWidget> oldState
)
inherited

Update the 'new' StateX object from the 'old' StateX object. Returning to this app from another app will re-create the State object You 'update' the current State object using this function.

Implementation

@override
@mustCallSuper
void updateNewStateX(covariant StateX oldState) {
  /// No 'setState()' functions are allowed
  _setStateAllowed = false;

  for (final con in controllerList) {
    con.updateNewStateX(oldState);
  }

  /// Re-enable setState() function
  _setStateAllowed = true;
}