ImportCache.only constructor

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

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

Implementation

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