JinjaMap class

Inheritance

Constructors

JinjaMap(Map<JinjaValue, JinjaValue> items, {String? name})
const

Properties

asBool → bool
Returns the truthy value of this object (for if/elif conditions).
no setteroverride
asDouble → double
no setterinherited
asInt → int
no setterinherited
asJinjaMap → Map<JinjaValue, JinjaValue>
no setter
asJinjaString → JinjaString
no setterinherited
asList → List<JinjaValue>
no setterinherited
asMap → Map<String, JinjaValue>
no setteroverride
asRepr → String
Returns a string representation for debugging (like Python's repr()).
no setterinherited
hashCode → int
The hash code for this object.
no setteroverride
isCallable → bool
no setterinherited
isEnv → bool
Whether this value is the special 'env' object.
no setteroverride
isList → bool
no setterinherited
isMap → bool
no setteroverride
isNone → bool
no setterinherited
isNumeric → bool
no setterinherited
isSafe → bool
Returns true if this value is considered "safe" (not needing escaping).
no setterinherited
isString → bool
no setterinherited
isUndefined → bool
no setterinherited
items → Map<JinjaValue, JinjaValue>
final
name → String?
Optional name for this value (e.g. 'env').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
Returns the type name for debugging and error messages (e.g., 'String', 'List').
no setteroverride

Methods

getAttribute(String name) → JinjaValue?
Returns a custom attribute of this value, or null if not found. Used for objects like loop that expose properties but aren't maps.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDart() → Object?
Converts this JinjaValue to a raw Dart object (Map, List, String, etc.).
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override