performLayout method
Hook for subclasses to perform layout within the given constraints.
Implementation
@override
Size performLayout(BoxConstraints constraints) {
if (childElement != null) {
childElement!.relativeOffset = Offset.zero;
return childElement!.layout(constraints);
}
return constraints.constrain(Size.zero);
}