computeSizeForNoChild method Null safety

Size computeSizeForNoChild(
  1. BoxConstraints constraints
)

Calculate the size the RenderProxyBox would have under the given BoxConstraints for the case where it does not have a child.

Implementation

Size computeSizeForNoChild(BoxConstraints constraints) {
  return constraints.smallest;
}