phoneTextFieldRegExp property
final
Regular expression pattern to validate phone numbers.
This pattern matches strings that consist of digits and the '+' symbol.
Example:
static final RegExp phoneTextFieldRegExp = RegExp('[0-9+]');
- Matches: '1234567890', '+1234567890', '0123456789+'
- Does not match: 'abc', '12.34'
Implementation
static final RegExp phoneTextFieldRegExp = RegExp('[0-9+]');