validateEmailPhone static method

String? validateEmailPhone(
  1. String? v
)

Implementation

static String? validateEmailPhone(String? v) {
  if (v!.isEmpty) {
    return Strings.fieldCantBeEmpty;
  } else if (GetUtils.isNumericOnly(v)) {
    return validatePhone(v);
  } else {
    return validateEmail(v);
  }
}