getDirectory method

  1. @override
DirectoryInfoBase? getDirectory(
  1. String path
)
override

Returns an instance of DirectoryInfoBase that represents a subdirectory

Implementation

@override
DirectoryInfoBase? getDirectory(String path) {
  for (final child in _children) {
    if (child is DirectoryInfoBase && child.name == path) {
      return child;
    }
  }
  return null;
}