formatValue method

  1. @override
TextEditingValue formatValue (
  1. TextEditingValue oldValue,
  2. TextEditingValue newValue
)
override

remove all invalid characters

Implementation

@override
TextEditingValue formatValue(TextEditingValue oldValue, TextEditingValue newValue) {
  return _digitOnlyFormatter.formatEditUpdate(oldValue, newValue);
}