MemoryResourceProvider constructor
MemoryResourceProvider({
- Context? context,
- @deprecated bool isWindows = false,
Implementation
MemoryResourceProvider(
{pathos.Context? context, @deprecated bool isWindows = false})
: _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;