performLayout method
Perform layout with box constraints
This is the main layout entry point. Subclasses should override this to implement their specific layout behavior.
Implementation
@override
void performLayout(Constraints constraints) {
// Convert to BoxConstraints if needed
final boxConstraints = constraints is BoxConstraints
? constraints
: BoxConstraints(
maxWidth: constraints.maxWidth,
maxHeight: constraints.maxHeight,
);
performBoxLayout(boxConstraints);
}