getResource method
Return the Resource that corresponds to the given path
.
The path
must be absolute and normalized.
Implementation
@override
Resource getResource(String path) {
_ensureAbsoluteAndNormalized(path);
var data = _pathToData[path];
return data is _FolderData
? _MemoryFolder(this, path)
: _MemoryFile(this, path);
}