phoneValidator static method

String? phoneValidator(
  1. String? value
)

Implementation

static String? phoneValidator(String? value) {
  return customRegexValidator(value, r'^\d{10}$', 'Invalid phone number');
}