Operator class abstract

An Operator behaves generally like functions, but differs syntactically or semantically.

Common simple examples include arithmetic (e.g. addition with +) and logical operations (e.g. logical AND with &).

An Operator can be used anywhere in an tag expression wherever that particular Operator should be performed.

The TemplateEngine supports several standard Operators.

Custom Operators

You can adopt existing Operators or add your own custom Operators by manipulating the TemplateEngine.operatorGroups field. See custom_operator_test.dart.

Implemented types
Implementers

Constructors

Operator.new()

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

addParser(Template template, ExpressionGroup2<Expression<Object>> group) → void
createMarkdownDocumentation(RenderContext renderContext, int titleLevel) List<String>
inherited
createMarkdownExamples(RenderContext renderContext, int titleLevel) List<String>
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