updateShouldRebuild method

  1. @protected
bool updateShouldRebuild(
  1. covariant ConstrainedLayoutBuilder<ConstraintType> oldWidget
)

Whether builder needs to be called again even if the layout constraints are the same.

When this widget's configuration is updated, the builder callback most likely needs to be called to build this widget's child. However, subclasses may provide ways in which the widget can be updated without needing to rebuild the child. Such subclasses can use this method to tell the framework when the child widget should be rebuilt.

When this method is called by the framework, the newly configured widget is asked if it requires a rebuild, and it is passed the old widget as a parameter.

See also:

Implementation

@protected
bool updateShouldRebuild(covariant ConstrainedLayoutBuilder<ConstraintType> oldWidget) => true;