cellChildFits function

String? cellChildFits(
  1. Node parent,
  2. SizeFit fit,
  3. bool horizontal
)

A grid or page view sizes its children: they fill their cell or page.

Implementation

String? cellChildFits(Node parent, SizeFit fit, bool horizontal) =>
    fit == SizeFit.fill ? null : '${parent.type == 'pageView' ? 'Pages' : 'Grid cells'} size their children: they fill them.';