performLayout method

  1. @override
void performLayout(
  1. Constraints constraints
)
override

Implementation

@override
void performLayout(Constraints constraints) {
  final boxSize = Size(boxWidth, boxHeight);
  size = boxSize;

  if (child != null) {
    child!.layout(BoxConstraints.tight(boxSize));
  }
}