getFile method

  1. @override
FileInfoBase? getFile(
  1. String path
)
override

Returns an instance of FileInfoBase that represents a file in the directory

Implementation

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