childExtent property
The dimension of the child in the main axis.
Implementation
@protected
double get childExtent {
if (child == null) {
return 0.0;
}
assert(child!.hasSize);
switch (constraints.axis) {
case Axis.vertical:
return child!.size.height;
case Axis.horizontal:
return child!.size.width;
}
}