Folder constructor

Folder({
  1. String? path,
  2. Iterable<File>? files,
  3. Iterable<Folder>? folders,
  4. String? name,
})

Implementation

factory Folder({
  $core.String? path,
  $core.Iterable<File>? files,
  $core.Iterable<Folder>? folders,
  $core.String? name,
}) {
  final _result = create();
  if (path != null) {
    _result.path = path;
  }
  if (files != null) {
    _result.files.addAll(files);
  }
  if (folders != null) {
    _result.folders.addAll(folders);
  }
  if (name != null) {
    _result.name = name;
  }
  return _result;
}