performLayout method
Called to perform the actual layout computation for this render object.
Implementation
@override
void performLayout(Constraints constraints) {
final boxSize = Size(boxWidth, boxHeight);
size = boxSize;
if (child != null) {
child!.layout(BoxConstraints.tight(boxSize));
}
}