getInitCountry method
dynamic
getInitCountry()
Implementation
getInitCountry() {
if (showCountry
.where((element) => element["dial_code"] == dialCodeInit)
.isNotEmpty) {
selectedCountry = Country.fromJson(showCountry
.firstWhere((element) => element["dial_code"] == dialCodeInit));
} else {
throw Exception(
"Select dial code for start country is not in countries data");
}
update();
}