phoneValidator static method

String? phoneValidator(
  1. String? value, {
  2. bool isRequired = true,
  3. String field = "Phone Number",
  4. RegExp? phoneRegex,
})

Implementation

static String? phoneValidator(String? value, {bool isRequired = true, String field = "Phone Number", RegExp? phoneRegex}) => FormValidator.phoneValidator(value, isRequired: isRequired, field: field, phoneRegex: phoneRegex);