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