list property
returns the list of smcat files in this folder that match the passed basename.
Implementation
List<SMCatFile> get list {
final all = Directory(folderPath).listSync();
final matching = <SMCatFile>[];
for (final one in all) {
final file = one.path;
if (p.extension(file) == '.smcat' && getBasename(file) == basename) {
matching.add(SMCatFile(file));
}
}
matching.sort((lhs, rhs) => lhs.compareTo(rhs));
return matching;
}