refresh method
Refresh data from remote source
Implementation
Future<void> refresh(CountryDataSource remoteSource) async {
final apiCountries = await remoteSource.fetchCountries();
if (apiCountries != null && apiCountries.isNotEmpty) {
_countries = apiCountries;
await _cache.saveCountries(apiCountries);
}
}