layoutChild method

PwSize layoutChild(
  1. Object id,
  2. BoxConstraints constraints
)

layoutChild API.

Implementation

PwSize layoutChild(Object id, BoxConstraints constraints) {
  final Widget? child = _children[id];
  if (child == null) {
    return PwSize.zero;
  }
  final PwBox box = child.layout(_context, constraints);
  boxes[id] = box;
  offsets.putIfAbsent(id, () => PwOffset.zero);
  return box.size;
}