validateSingle method
Implementation
bool validateSingle(dynamic value) {
if (value == null) return true;
var n = value as num;
if (max == null) return true;
if (maxExclusive) {
return n < max!;
} else {
return n <= max!;
}
}
bool validateSingle(dynamic value) {
if (value == null) return true;
var n = value as num;
if (max == null) return true;
if (maxExclusive) {
return n < max!;
} else {
return n <= max!;
}
}