isValidPhoneNumber static method
Validates if the given string is a valid phone number. Supports international formats.
Implementation
static bool isValidPhoneNumber(String phone) {
final regex = RegExp(r'^\+?[1-9]\d{1,14}\$');
return regex.hasMatch(phone);
}