performRebuild method

  1. @override
void performRebuild()
override

Cause the widget to update itself.

Called by rebuild after the appropriate checks have been made.

The base implementation only clears the dirty flag.

Implementation

@override
void performRebuild() {
  if (_newWidget != null) {
    // _newWidget can be null if, for instance, we were rebuilt
    // due to a reassemble.
    final RootWidget newWidget = _newWidget!;
    _newWidget = null;
    update(newWidget);
  }
  super.performRebuild();
  assert(_newWidget == null);
}