FunctionExpression constructor

FunctionExpression(
  1. String name, [
  2. List<Object?> args = const <Object?>[]
])

Creates a call of the server function name (snake case) with args. Arguments that are not expressions are treated as constants.

Implementation

FunctionExpression(this.name, [List<Object?> args = const <Object?>[]])
  : args = List<Expression>.unmodifiable(args.map(toExpression));