findParts method

List<File> findParts(
  1. Directory dir
)

Implementation

List<File> findParts(Directory dir) {
  return dir
      .listSync(recursive: true, followLinks: false)
      .where((e) {
        return e.path.endsWith('.part.yaml') || e.path.endsWith('.part.yml');
      })
      .map((e) => File(e.path))
      .toList();
}