ArcadeExpression constructor

ArcadeExpression({
  1. required String expression,
  2. String title = '',
  3. String name = '',
  4. ArcadeExpressionReturnType returnType = ArcadeExpressionReturnType.automatic,
})

Creates a new Arcade expression with an expression string, title, name, and return type.

If the Arcade expression evaluates to a result which differs from ArcadeExpressionReturnType then the result will be cast to the expected return type.

If the cast cannot be carried out, the result will be a type-specific error value. See ArcadeExpressionReturnType for details.

Parameters: