getDefaultCountry method

Future<LokotroCountry?> getDefaultCountry()

Get default country (first one or DRC)

Implementation

Future<LokotroCountry?> getDefaultCountry() async {
  final countries = await fetchCountries();

  if (countries.isEmpty) return null;

  // Try to find DRC (243) as default
  for (final country in countries) {
    if (country.primaryCountryCode == '243') {
      return country;
    }
  }

  // Return first country if DRC not found
  return countries.first;
}