FileTemplate class
A template loaded from a local file.
Constructors
- FileTemplate(File file)
-
Creates a template backed by
file. - FileTemplate.fromFilePath(String projectFilePath)
-
Creates a template backed by the file at
projectFilePath.
Properties
- hashCode → int
-
Returns a hash code derived from the source and text future.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source ↔ String
-
Explains where the template text came from.
A source results in a text.
We use the source to identify and cash Templates for performance.
getter/setter pairinherited
- sourceTitle ↔ String
-
Explains where the template text came from.
It is used in Errors and can be shorter then source
getter/setter pairinherited
-
text
↔ Future<
String> -
The text to be parsed by the TemplateEngine
getter/setter pairinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Compares templates by their case-insensitive source.
inherited