moduleParams property

ModuleLoadParams moduleParams

Implementation

ModuleLoadParams get moduleParams => _moduleParams;
void moduleParams=(ModuleLoadParams params)

Implementation

set moduleParams(ModuleLoadParams params) {
  var bundleLoader = _moduleParams.bundleLoader;
  if (bundleLoader != null) {
    _bundleLoader = bundleLoader;
  } else {
    var jsAsstsPath = params.jsAssetsPath;
    var jsFilePath = params.jsFilePath;
    var jsHttpPath = params.jsHttpPath;
    if (jsAsstsPath != null && !isEmpty(jsAsstsPath)) {
      _bundleLoader = AssetBundleLoader(
        jsAsstsPath,
        canUseCodeCache: !isEmpty(params.codeCacheTag),
        codeCacheTag: params.codeCacheTag,
      );
    } else if (jsFilePath != null && !isEmpty(jsFilePath)) {
      _bundleLoader = FileBundleLoader(
        jsFilePath,
        canUseCodeCache: !isEmpty(params.codeCacheTag),
        codeCacheTag: params.codeCacheTag,
      );
    } else if (jsHttpPath != null && !isEmpty(jsHttpPath)) {
      _bundleLoader = HttpBundleLoader(
        jsHttpPath,
        canUseCodeCache: !isEmpty(params.codeCacheTag),
        codeCacheTag: params.codeCacheTag,
      );
    }
  }
}