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