noWhitespaceFormatter static method
noWhitespaceFormatter prevents all whitespace characters.
Implementation
static List<TextInputFormatter> noWhitespaceFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'\s')),
];
}
noWhitespaceFormatter prevents all whitespace characters.
static List<TextInputFormatter> noWhitespaceFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'\s')),
];
}