constraints property

BoxConstraints get constraints

Size constraints for the window.

Defines min/max width and height limits for resizing.

Implementation

BoxConstraints get constraints => value.constraints;
set constraints (BoxConstraints value)

Sets the size constraints for the window.

Implementation

set constraints(BoxConstraints value) {
  if (value == constraints) return;
  this.value = this.value.copyWith(constraints: () => value);
}