MemoryResourceProvider constructor

MemoryResourceProvider(
  1. {Context? context,
  2. Duration? delayWatcherInitialization}
)

Implementation

MemoryResourceProvider({
  pathos.Context? context,
  this.delayWatcherInitialization,
}) : _pathContext = context ??= pathos.style == pathos.Style.windows
          // On Windows, ensure that the current drive matches
          // the drive inserted by MemoryResourceProvider.convertPath
          // so that packages are mapped to the correct drive
          ? pathos.Context(current: 'C:\\')
          : pathos.context;