InMemoryDirectoryInfo constructor

InMemoryDirectoryInfo(
  1. String path, {
  2. List<FileSystemInfoBase>? files,
  3. DirectoryInfoBase? parent,
})

Creates an in-memory directory with the specified path and children.

Implementation

InMemoryDirectoryInfo(
  String path, {
  List<FileSystemInfoBase>? files,
  DirectoryInfoBase? parent,
})  : _path = path,
      _children = files ?? [],
      _parent = parent;