CssTemplateEngine class
A CSS templating engine that supports:
- Variable substitution: {{ key }}
- Conditional blocks: {{ if condition }}...{{ endif }}
- Loops: {{ for item in list }}...{{ endfor }}
- Filters: {{ key | filterName }}
- Dynamic expression evaluation: {{ if width < 500 }}...{{ endif }}
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contentType(
) → ContentType -
Returns a
ContentType
containing the template content typeoverride -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
String template, Map< String, dynamic> context) → String -
Returns a
String
containing the rendered templateoverride -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited