min static method
Validates minimum numeric value.
Implementation
static String? min(num? value, num minValue, {String? fieldName}) {
if (value == null) {
return null;
}
if (value < minValue) {
return '${fieldName ?? "Value"} must be at least $minValue.';
}
return null;
}