Template constructor

Template(
  1. String source, {
  2. bool lenient,
  3. bool htmlEscapeValues,
  4. String name,
  5. PartialResolver? partialResolver,
  6. String delimiters,
})

The constructor parses the template source and throws TemplateException if the syntax of the source is invalid. Tag names may only contain characters a-z, A-Z, 0-9, underscore, and minus, unless lenient mode is specified.

Implementation

factory Template(String source,
    {bool lenient,
    bool htmlEscapeValues,
    String name,
    PartialResolver? partialResolver,
    String delimiters}) = t.Template.fromSource;