username constant
String
const username
begin with one letter, contains only alphanumeric and only one dot or underscore in a row (not accept at the end)
Implementation
static const String username = r'^[a-zA-Z](?:[_.]?[a-zA-Z0-9]+)*$';