templateFilesOf function
The text files of brick, by path with forward slashes, decoded from
its bundle; see templateTextOf.
Implementation
Map<String, String> templateFilesOf(BrickContribution brick) => {
for (final file in brick.bundle.files)
if (templateTextOf(file) case final text?)
file.path.replaceAll(r'\', '/'): text,
};