validateUsername function

bool validateUsername(
  1. String username
)

Implementation

bool validateUsername(String username) =>
    !validateEmail(username) &&
    !validateMobile(username) &&
    username.length > 6;