validatePhone static method

String? validatePhone(
  1. String? v
)

Implementation

static String? validatePhone(String? v) {
  if (v!.isEmpty) {
    return Strings.fieldCantBeEmpty;
  } else if (v.length >= 13) {
    return Strings.enterValidNumber;
  } else {
    return null;
  }
}