isValidPhoneNumber property
bool
get
isValidPhoneNumber
Determines whether the string is a valid phone number (starts with 00 or +).
Implementation
bool get isValidPhoneNumber =>
RegExp(r'^(?:\+|00)[0-9]{1,3}[0-9]{4,14}$').hasMatch(this);