validateEmail static method

String? validateEmail(
  1. String? v
)

Implementation

static String? validateEmail(String? v) {
  if (v!.isEmpty) {
    return Strings.emailCantBeEmpty;
  } else if (!GetUtils.isEmail(v)) {
    return Strings.enterValidEmail;
  } else {
    return null;
  }
}