TemplateFile class

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

Constructors

TemplateFile(String path, 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}}).
TemplateFile.fromBytes(String path, List<int> 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}}).

Properties

content List<int>
The template file content.
final
hashCode int
The hash code for this object.
no setterinherited
path String
The template file path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runSubstitution(Map<String, dynamic> parameters, Map<String, List<int>> partials) Set<FileContents>
Performs a substitution on the path based on the incoming parameters.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited