constraints property

  1. @override
BoxConstraints constraints
override

The most recent constraints given to this boxy by its parent.

During a dry layout, this returns the last constraints given to the boxy's RenderBox.getDryLayout.

Implementation

@override
BoxConstraints get constraints {
  final render = this.render;
  return render._dryConstraints ?? render.constraints;
}