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) {
  return Size(
    width.coerceAtLeast(minimum.width),
    height.coerceAtLeast(minimum.height),
  );
}