alphaNumericFormatter static method

List<TextInputFormatter> alphaNumericFormatter()

alphaNumericFormatter allows alphanumeric input.

Implementation

static List<TextInputFormatter> alphaNumericFormatter() {
  return [FilteringTextInputFormatter.allow(RegExp(r'[a-zA-Z0-9]'))];
}