min<T extends num> function
Creates a validator that fails when a numeric value is less than minValue.
Returns message (or 'Must be at least $minValue.' by default) when invalid.
final ageField = BloomTypedFormField<int>(
initialValue: 18,
validators: [min(18, 'Must be at least 18 years old.')],
);
Implementation
String? Function(T) min<T extends num>(T minValue, [String? message]) =>
(v) => v < minValue ? (message ?? 'Must be at least $minValue.') : null;