coerceAtLeast method

Size coerceAtLeast(
  1. Size minimum
)

Ensures that this Size is not smaller than the specified minimum in any axis.

Implementation

Size coerceAtLeast(Size minimum) =>
    Size(math.max(width, minimum.width), math.max(height, minimum.height));