performLayout method
Hook for subclasses to perform layout within the given constraints.
Implementation
@override
Size performLayout(BoxConstraints constraints) {
final w = constraints.hasBoundedWidth ? constraints.maxWidth : 0;
final h = constraints.hasBoundedHeight ? constraints.maxHeight : 0;
return constraints.constrain(Size(w, h));
}