findParts method
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();
}