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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runSubstitution(
Map< String, dynamic> parameters, Map<String, List< partials) → Set<int> >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