format static method

List<TextInputFormatter> format()

Returns a formatter list that strips all whitespace characters as the user types.

Implementation

static List<TextInputFormatter> format() {
  return <TextInputFormatter>[Formatters.preventSpaces];
}