use method

void use(
  1. Loader preset
)

Use a Loader, If preset contains in current RuntimeConfigure skip it.

Implementation

void use(Loader preset) {
  if (_loaders.contains(preset)) return;

  /// Register depends loaders.
  for (final preset in preset.dependencies) {
    use(preset);
  }

  _loaders.add(preset);
  for (final MapEntry(key: keys, value: value)
      in preset.load(shouldWarn: shouldWarn(_storage)).dot().entries) {
    set(keys, value);
  }
}