load static method
Loads the country data once. Concurrent calls share the same load.
Implementation
static Future<void> load() {
if (isLoaded) return Future.value();
return _loading ??= _load().whenComplete(() => _loading = null);
}
Loads the country data once. Concurrent calls share the same load.
static Future<void> load() {
if (isLoaded) return Future.value();
return _loading ??= _load().whenComplete(() => _loading = null);
}