isUsername property
bool
get
isUsername
Determines whether a given string represents a valid username.
Implementation
bool get isUsername =>
_hasMatch(this, r'^[a-zA-Z0-9][a-zA-Z0-9_.]+[a-zA-Z0-9]$');