TextInputFormatFunction typedef Null safety
Function signature expected for creating custom TextInputFormatter shorthands via TextInputFormatter.withFunction.
Implementation
typedef TextInputFormatFunction = TextEditingValue Function(
TextEditingValue oldValue,
TextEditingValue newValue,
);