phone validation method, only 10 digits
phone validation
bool phoneValidation(String phone) { final RegExp regex = RegExp( r'^[0-9]{10}$', ); return regex.hasMatch(phone); }