performResize method Null safety

  1. @override
void performResize ()

Updates the render objects size using only the constraints.

Do not call this function directly: call layout instead. This function is called by layout when there is actually work to be done by this render object during layout. The layout constraints provided by your parent are available via the constraints getter.

This function is called only if sizedByParent is true.

By default this method calls getDryLayout with the current constraints. Instead of overriding this method, consider overriding computeDryLayout (the backend implementation of getDryLayout).


void performResize() {
  // default behavior for subclasses that have sizedByParent = true
  size = computeDryLayout(constraints);