getBoxSize method

Size getBoxSize(
  1. Size contentSize
)

Implementation

Size getBoxSize(Size contentSize) {
  _contentSize = contentConstraints!.constrain(contentSize);
  Size paddingBoxSize = renderStyle.wrapPaddingSize(_contentSize!);
  Size borderBoxSize = renderStyle.wrapBorderSize(paddingBoxSize);
  return constraints.constrain(borderBoxSize);
}