getMinMaxMessage static method
Implementation
static String? getMinMaxMessage(
{String? minMessage,
String? maxMessage,
String? nullMessage,
required int? value,
required int min,
required int max}) {
if (value == null) {
return nullMessage;
}
if (value < min) {
return minMessage;
} else if (value > max) {
return maxMessage;
}
return null;
}