layout abstract method

void layout(
  1. LayoutOffset offset,
  2. LayoutSize size,
  3. OverflowBounds overflowBounds
)

Performs the actual layout of this child within the given constraints.

This method calculates and sets the child's size and position based on the provided constraints and the child's layout data. After calling this, the child's size and offset properties will be valid.

Implementation

void layout(
  LayoutOffset offset,
  LayoutSize size,
  OverflowBounds overflowBounds,
);