getAllCountries method
getAllCountries Returns all regions the library has metadata for.
Implementation
@override
Future<List<String>?> getAllCountries() async {
PhoneNumberUtilJsImpl phoneUtilJsImpl = PhoneNumberUtilJsImpl.getInstance();
final allCountries = phoneUtilJsImpl
.getSupportedRegions()
.map<String>((e) => e as String)
.toList();
return allCountries;
}