AsyncImportCache.only constructor

AsyncImportCache.only(
  1. Iterable<AsyncImporter> importers, {
  2. Logger? logger,
})

Creates an import cache without any globally-available importers, and only the passed in importers.

Implementation

AsyncImportCache.only(Iterable<AsyncImporter> importers, {Logger? logger})
    : _importers = List.unmodifiable(importers),
      _logger = logger ?? const Logger.stderr();