TextInputFormatFunction typedef

TextEditingValue TextInputFormatFunction (
  1. TextEditingValue oldValue,
  2. TextEditingValue newValue
)

Function signature expected for creating custom TextInputFormatter shorthands via TextInputFormatter.withFunction;

Implementation

typedef TextInputFormatFunction = TextEditingValue Function(
  TextEditingValue oldValue,
  TextEditingValue newValue,
);