LambdaContext class

Passed as an argument to a mustache lambda function. The methods on this object may only be called before the lambda function returns. If a method is called after it has returned an exception will be thrown.

Constructors

LambdaContext(Node _node, Renderer _renderer)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Get the unevaluated template source for the current section tag.
no setter

Methods

close() → void
lookup(String variableName) Object?
Lookup the value of a variable in the current context.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({Object? value}) → void
Render and directly output the current section tag. If provided, value will be added to the top of the context's stack.
renderSource(String source, {Object? value}) String
Evaluate the string as a mustache template using the current context. If provided, value will be added to the top of the context's stack.
renderString({Object? value}) String
Render the current section tag in the current context and return the result as a string. If provided, value will be added to the top of the context's stack.
toString() String
A string representation of this object.
inherited
write(Object object) → void
Output a string. The output will not be html escaped, and will be written before the output returned from the lambda.

Operators

operator ==(Object other) bool
The equality operator.
inherited