MustacheTemplate class
Implements an mustache template class.
Constructors
- MustacheTemplate([String? mustacheTemplate])
- Constructs this class and assigns mustache template.
Properties
- autoVariables ↔ bool
-
Gets the flag to turn on auto creation of variables for specified mustache.
getter/setter pair
-
defaultVariables
→ Map<
String, dynamic> -
The list with default variables.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialTokens
→ List<
MustacheToken> -
The list of original mustache tokens.
no setter
-
originalTokens
↔ List<
Token> -
List of original Mustache tokens.
getter/setter pair
-
resultTokens
→ List<
MustacheToken> -
The list of processed mustache tokens.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- template ↔ String
-
The mustache template.
getter/setter pair
Methods
-
clear(
) → void - Cleans up this calculator from all data.
-
createVariables(
Map< String, dynamic> ? variables) → void - Populates the specified variables list with variables from parsed mustache.
-
evaluate(
) → String? - Evaluates this mustache template using default variables. Returns the evaluated template
-
evaluateWithVariables(
Map< String, dynamic> ? variables) → String? - Evaluates this mustache using specified variables.
-
getVariable(
Map< String, dynamic> ? variables, String? name) → dynamic - Gets a variable value from the collection of variables
-
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 -
The equality operator.
inherited