username property
List<TextInputFormatter>
get
username
For username inputs (alphanumeric with specific symbols)
Implementation
static List<TextInputFormatter> get username => <TextInputFormatter>[
...denyEmojis,
FilteringTextInputFormatter.allow(RegExp(r'[a-zA-Z0-9._-]')),
LengthLimitingTextInputFormatter(30),
];