union method

The union between this file collection and other.

All files and directories included in this or other is also included in the returned collection. If one collection excludes some file entity but the other does not, the file entity is included in the resulting collection.

To create a union between many collections, use MultiFileCollection directly.

Implementation

FileCollection union(FileCollection other) {
  return MultiFileCollection([this, other]);
}