preload static method

Future<void>? preload(
  1. LibraryLoader loader
)

Implementation

static Future<void>? preload(LibraryLoader loader) {
  if (!_moduleLoaders.containsKey(loader)) {
    _moduleLoaders[loader] = loader().then((dynamic _) {
      _loadedModules.add(loader);
    });
  }
  return _moduleLoaders[loader];
}