isCountryCode function

bool isCountryCode(
  1. String text
)

Implementation

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