TemplateFile constructor

TemplateFile(
  1. String path,
  2. String content
)

This class represents a file in a generator template. The contents should be text and may contain mustache variables that can be substituted ({{myVar}}).

Implementation

TemplateFile(String path, String content)
    : this.fromBytes(path, utf8.encode(content));