constraints property
The box constraints most recently received from the parent.
Implementation
@override
BoxConstraints get constraints {
if (isSizedLayout) {
final double height = (maxExtent! - position.pixels) + lentPixels;
return super
.constraints
.copyWith(maxHeight: height.clamp(0.0, double.infinity));
}
return super.constraints;
}