MemoryResourceProvider constructor

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

Implementation

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