TextInputFormatter.withFunction constructor

const TextInputFormatter.withFunction(
  1. TextInputFormatFunction formatFunction
)

A shorthand to creating a custom TextInputFormatter which formats incoming text input changes with the given function.

Implementation

const factory TextInputFormatter.withFunction(TextInputFormatFunction formatFunction) = _SimpleTextInputFormatter;