Eval class

Eval parses evaluation strings from FML templates

Evals are denoted in templates by =... or eval(...) where ... is what to evaluate Evals can contain functions expressions which are inline function calls Evals can contain common operators: !, ||, &&, ==, !=, >=, <=, >, <, +, -, *, /, %, ^ Evals can contain conditional operations; expression ? consequent : alternate

Implementers

Constructors

Eval()

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

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

Static Properties

functions Map<String, dynamic>
The String value mapping of all the functions
final
nonQuotedColons RegExp
final

Static Methods

evaluate(String? expression, {Map<String?, dynamic>? variables, Map<String?, dynamic>? altFunctions}) → dynamic
normalize(dynamic expression) String?
replaceInLiterals(dynamic expression, Map<String, dynamic> variables) Expression?