numbersOnly property
List<TextInputFormatter>
get
numbersOnly
Allows only numeric characters Useful for phone numbers, IDs, and numeric inputs
Implementation
static List<TextInputFormatter> get numbersOnly => <TextInputFormatter>[
FilteringTextInputFormatter.deny(_numbersOnlyPattern),
];