Literal<T extends Object?> class
An expression that represents a literal value.
- Inheritance
-
- Object
- Expression
- Literal
- Implementers
Constructors
- Literal({required T value})
-
Creates a new literal instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
The value of the literal.
final
Methods
-
evaluate(
EvaluationContext evaluationContext) → T -
Evaluates the value of the current expression.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
{ExpressionRenderer renderer = const DefaultExpressionRenderer()}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override