clamp
Clamps stroke widths and grid steps. Label sizes pass through for validation.
Returns this with alphas, sizes, and grid steps clamped to drawable values.
Returns this made drawable, or null when it cannot be drawn, so the shape is solid.
Drops stops with non-finite offsets, coerces the rest into 0..1, sorts them, and clamps each GradientStop.Series alpha. A single stop paints its color solid. No stops, non-finite positions, or a start equal to the end return null.
Returns this with GridStyle.steps and GridStyle.lineWidth clamped. Names every field instead of using copy, so a field added to the constructor fails to compile here until it is dealt with.