isUserName static method

bool isUserName(
  1. String input, {
  2. String regex = regexUsername,
})

Return whether input matches regex of username.

Implementation

static bool isUserName(String input, {String regex = regexUsername}) {
  return matches(regex, input);
}