FancySize extension Null safety

on

Properties

diagonal double
The length of the diagonal of a rectangle with this Size.
read-only
squaredDiagonal double
The squared length of the diagonal of a rectangle with this Size.
read-only

Methods

coerceAtLeast(Size minimum) Size
Ensures that this Size is not smaller than the specified minimum in any axis.
coerceAtMost(Size maximum) Size
Ensures that this Size is not larger than the specified maximum in any axis.