lettersOnly property

List<TextInputFormatter> get lettersOnly

Allows only letters and spaces (supports multiple languages) Ideal for names in different languages

Implementation

static List<TextInputFormatter> get lettersOnly => <TextInputFormatter>[
  FilteringTextInputFormatter.deny(_lettersOnlyPattern),
];