verifyMaximumDecimal method
dynamic
verifyMaximumDecimal()
inherited
Implementation
verifyMaximumDecimal(
String curValue,
String oldValue,
int digit,
Function(String, bool)? call,
) {
late String result = curValue;
late bool res = false;
final List<String> resList = curValue.split('.');
if (resList.length >= 2) {
if (resList.last.length > digit) {
result = oldValue;
res = true;
}
}
call?.call(result, res);
}