gitignores property

Iterable<File> get gitignores

All .gitignore files inside the package.

Implementation

Iterable<File> get gitignores => root
    .listSync(recursive: true)
    .whereType<File>()
    .where((file) => basename(file.path) == '.gitignore');