performLayout method

  1. @override
CellSize performLayout(
  1. CellConstraints constraints
)
override

Override to compute the chosen size and lay out children. Must return a size that satisfies constraints.

Implementation

@override
CellSize performLayout(CellConstraints constraints) {
  final c = _child;
  if (c == null) return constraints.constrain(const CellSize(0, 0));
  return c.layout(constraints);
}