paintExtentOf method

  1. @protected
double paintExtentOf(
  1. RenderBox child
)

Returns the dimension of the given child in the main axis, as given by the child's RenderBox.size property. This is only valid after layout.

Implementation

@protected
double paintExtentOf(RenderBox child) {
  assert(child.hasSize);
  return switch (constraints.axis) {
    Axis.horizontal => child.size.width,
    Axis.vertical   => child.size.height,
  };
}