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