phoneUS property
US phone number
Implementation
static final RegExp phoneUS = RegExp(
r'^(\+1)?[\s.-]?\(?[2-9]\d{2}\)?[\s.-]?\d{3}[\s.-]?\d{4}$',
);
US phone number
static final RegExp phoneUS = RegExp(
r'^(\+1)?[\s.-]?\(?[2-9]\d{2}\)?[\s.-]?\d{3}[\s.-]?\d{4}$',
);