$Jinja class
Represents a single Jinja command block for template logic.
$Jinja generates template blocks using the configured block delimiters
(typically {% command %}). These blocks contain template logic such as
variable assignments, conditionals, loops, and other Jinja directives.
Example usage:
final ifBlock = $Jinja('if user.is_authenticated');
// Generates: {% if user.is_authenticated %}
final setVar = $Jinja('set title = "Welcome"');
// Generates: {% set title = "Welcome" %}
- Inheritance
- Implementers
Properties
- attrs ↔ Map
-
getter/setter pairinherited
-
children
↔ List<
Tag> -
getter/setter pairinherited
- classes ↔ List
-
getter/setter pairinherited
- command ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tagName → String
-
no setterinherited
- type ↔ TagType
-
getter/setter pairinherited
Methods
-
addAttr(
String key, dynamic value) → Tag -
inherited
-
addChild(
Tag child) → Tag -
inherited
-
addClass(
dynamic className) → Tag -
inherited
-
addStyle(
String property, String value) → Tag -
inherited
-
attrKey(
dynamic key) → String -
inherited
-
clearChildren(
) → Tag -
inherited
-
clearClasses(
) → Tag -
inherited
-
clearStyles(
) → Tag -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAttr(
String key) → Tag -
inherited
-
removeChild(
Tag child) → Tag -
inherited
-
removeClass(
String className) → Tag -
inherited
-
removeStyle(
String property) → Tag -
inherited
-
setClass(
String className) → Tag -
inherited
-
setId(
String id) → Tag -
inherited
-
setStyle(
String property, String value) → Tag -
inherited
-
toHtml(
) → String -
override
-
toString(
{bool pretty = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited