performLayout method
Implementation
@override
void performLayout(Constraints constraints) {
final boxSize = Size(boxWidth, boxHeight);
size = boxSize;
if (child != null) {
child!.layout(BoxConstraints.tight(boxSize));
}
}
@override
void performLayout(Constraints constraints) {
final boxSize = Size(boxWidth, boxHeight);
size = boxSize;
if (child != null) {
child!.layout(BoxConstraints.tight(boxSize));
}
}