isPhone property
bool
get
isPhone
Check if string is a valid phone number
Supports international format with optional + prefix
Implementation
bool get isPhone {
return RegExp(r'^\+?[\d\s\-\(\)]{10,}$').hasMatch(this);
}