maxValue static method
Implementation
static String? maxValue(String? value, num max,
{String? message}) {
final v = num.tryParse(value ?? '');
if (v == null) return null;
if (v > max) {
return message ?? "Maximum value is $max";
}
return null;
}