ArcadeExpression class final

An Arcade expression object, containing an expression, a name, a return type and a title.

An ArcadeExpression object gathers an Arcade script expression together with:

  • The expected return type
  • The name that a map author uses to refer to it
  • The title that the author uses to describe the expression
Implemented types
Mixed-in types

Constructors

ArcadeExpression({required String expression, String title = '', String name = '', ArcadeExpressionReturnType returnType = ArcadeExpressionReturnType.automatic})
Creates a new Arcade expression with an expression string, title, name, and return type.
factory
ArcadeExpression.fromJson(Map<String, dynamic> json)
factory
ArcadeExpression.fromJsonString(String jsonString)
factory

Properties

expression String
The Arcade expression string.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
The name that the author uses to refer to the expression.
no setter
returnType ArcadeExpressionReturnType
The expected return type of the expression.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
The title that the author uses to describe the expression.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
toJsonString() String
Returns a JSON representation of this Object as a String.
override
toString() String
A string representation of this object.
inherited

Operators

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