getPureMainAxisExtent static method

double getPureMainAxisExtent(
  1. RenderBox child
)

Implementation

static double getPureMainAxisExtent(RenderBox child) {
  double marginHorizontal = 0;

  if (child is RenderBoxModel) {
    marginHorizontal = child.renderStyle.marginLeft.computedValue + child.renderStyle.marginRight.computedValue;
  }

  Size childSize = getChildSize(child) ?? Size.zero;

  return childSize.width + marginHorizontal;
}