noLeadingSpaceFormatter static method
noLeadingSpaceFormatter prevents leading spaces.
Implementation
static List<TextInputFormatter> noLeadingSpaceFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'^\s')),
];
}
noLeadingSpaceFormatter prevents leading spaces.
static List<TextInputFormatter> noLeadingSpaceFormatter() {
return [
FilteringTextInputFormatter.deny(RegExp(r'^\s')),
];
}