alphabetFormatter static method
alphabetFormatter allows only alphabetic input.
Implementation
static List<TextInputFormatter> alphabetFormatter() {
return [FilteringTextInputFormatter.allow(RegExp(r'[a-zA-Z]'))];
}
alphabetFormatter allows only alphabetic input.
static List<TextInputFormatter> alphabetFormatter() {
return [FilteringTextInputFormatter.allow(RegExp(r'[a-zA-Z]'))];
}