BoxConstraints
Constraints that must be respected by a size of a box.
A Size respects a BoxConstraints if, and only if, all of the following relations hold:
min_width <= Size.width <= max_width
min_height <= Size.height <= max_height
Read more about BoxConstraints here.
Properties
-
max_height(Number) –The maximum height that satisfies the constraints, such that
-
max_width(Number) –The maximum width that satisfies the constraints, such that
-
min_height(Number) –The minimum height that satisfies the constraints, such that
-
min_width(Number) –The minimum width that satisfies the constraints, such that
Methods
-
copy–Returns a copy of this object with the specified properties overridden.
Properties#
max_height
#
The maximum height that satisfies the constraints, such that
min_height <= max_height <= float("inf").
max_width
#
The maximum width that satisfies the constraints, such that
min_width <= max_width <= float("inf").
min_height
#
min_height: Number = 0
The minimum height that satisfies the constraints, such that
0.0 <= min_height <= max_height.
min_width
#
min_width: Number = 0
The minimum width that satisfies the constraints, such that
0.0 <= min_width <= max_width.