measure
Measures the item according to the given size constraints.
Parameters
sizeConstraints
The constraints that define the minimum and maximum dimensions for measurement
result
Optional array to store the measured width and height values (index 0 for width, index 1 for height)