withNature<T extends RunFolder> method

Iterable<FolderContext> withNature<T extends RunFolder>()

Get all FolderContexts that have a specific nature type.

Useful when you need both the folder path and the nature object.

Implementation

Iterable<FolderContext> withNature<T extends RunFolder>() {
  return folders.where(
      (f) => f.natures.any((n) => n is T));
}