use internal variable

This commit is contained in:
sneurlax 2023-01-27 14:38:24 -06:00
parent d5c3712067
commit 957a6d63ae

View file

@ -1400,7 +1400,7 @@ class NumericalRangeFormatter extends TextInputFormatter {
: r'^([0-9]*[,.]?[0-9]{0,8}|[,.][0-9]{0,8})$';
// return RegExp(r'^([0-9]*[,.]?[0-9]{0,8}|[,.][0-9]{0,8})$')
return RegExp(regexString).hasMatch(newValue.text)
return RegExp(regexString).hasMatch(newVal)
? TextEditingValue(text: newVal, selection: newSelection)
: oldValue;
}