bool isCountryCode(String text) { if (RegExp(Constants.countryCodePattern).hasMatch(text)) { return true; } return false; }