phoneValidation function

bool phoneValidation(
  1. String? value
)

Implementation

bool phoneValidation(String? value) {
  if (value == null) return false;
  const phoneRegex = r'^\d{11,15}$';
  return RegExp(phoneRegex).hasMatch(value);
}