templateFilesOf function

Map<String, String> templateFilesOf(
  1. BrickContribution brick
)

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,
    };