noAlphabetsFormatter static method
noAlphabetsFormatter prevents alphabetic input.
Implementation
static List<TextInputFormatter> noAlphabetsFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'[a-zA-Z]')),
];
}
noAlphabetsFormatter prevents alphabetic input.
static List<TextInputFormatter> noAlphabetsFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'[a-zA-Z]')),
];
}