MemoryResourceProvider constructor
MemoryResourceProvider({
- Context? context,
- 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 ResourceProvider.convertPath
// so that packages are mapped to the correct drive
? pathos.Context(current: 'C:\\')
: pathos.context;