addSuffix method

void addSuffix(
  1. String suffixKey,
  2. String text
)

Add a named piece of text that will be emitted at the end of the file after the main contents are generated.

The suffixKey is not emitted - it's just used as a key for uniqueness, so that addSuffix could be called more than once with the same suffix content, but only emit that particular suffix text once.

Implementation

void addSuffix(String suffixKey, String text) {
  _suffixes[suffixKey] = text;
}