getCountries property
Implementation
List<Country> get getCountries {
if (_searchKey.isEmpty) {
return _visibleCountries;
}
return _visibleCountries
.where((element) =>
element.dialCode.contains(_searchKey) ||
element.code.contains(_searchKey.toUpperCase()) ||
element.name.contains(_searchKey))
.toList();
}