JsonJsTag class

The json-js tag. It generates a JavaScript object by converting the given Dart expression into a JSON object.

[:json-js name=expression ]

Then, it generates a SCRIPT tag something similar as follows:

<script>name=jsonEcode(expression)</script>

Notice: it is a JavaScript object. If you'd like to handle it in Dart, it is better to use JsonTag instead.

Inheritance

Constructors

JsonJsTag()

Properties

hasClosing bool
Whether this tag requires a closing tag, such as [/if].
no setteroverride
hasContent bool
Whether this tag generates any content to the response's output.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The tag name.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

begin(TagContext tc, String data) → void
Called when the beginning of a tag is encountered.
override
end(TagContext context) → void
Called when the ending of a tag is encountered.
inherited
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