verifyRange method
dynamic
verifyRange()
inherited
Verify range.
Implementation
verifyRange(
String curValue,
String oldValue,
num minValue,
num maxValue,
Function(String, bool)? call,
) {
final double? value = double.tryParse(curValue);
late bool res = false;
if (value != null) {
res = value < minValue || value > maxValue;
}
final String result = res ? oldValue : curValue;
call?.call(result, res);
}