formatters property

List<FilteringTextInputFormatter> formatters
final

A list of input formatters that can be used to validate name inputs.

This list includes formatters that deny digits and special characters.

Implementation

static final formatters = [
  FilteringTextInputFormatter.deny(RegExp(digitsPattern)),
  FilteringTextInputFormatter.deny(RegExp(specialCharsPattern)),
];