getCountries function

Future<void> getCountries(
  1. dynamic context
)

Implementation

Future<void> getCountries(context) async {
  try {
    final response = await Network().getCountries();
    countryListNotifier.value.clear();
    countryListNotifier.value.addAll(response);
    countryListNotifier.notifyListeners();
  } catch (e) {}
}