load static method

Future<void> load()

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);
}