isValidPhone static method

bool isValidPhone(
  1. String? phone
)

Implementation

static bool isValidPhone(String? phone) {
  return phone != null && phone.isNotEmpty && Regs.phone.hasMatch(phone);
}