InvokeExpression.newOf constructor

const InvokeExpression.newOf(
  1. Expression target,
  2. List<Expression> positionalArguments,
  3. [Map<String, Expression> namedArguments = const {},
  4. List<Reference> typeArguments = const [],
  5. String? name]
)

Implementation

const InvokeExpression.newOf(
  this.target,
  this.positionalArguments, [
  this.namedArguments = const {},
  this.typeArguments = const [],
  this.name,
])  : type = InvokeExpressionType.newInstance,
      isConst = false;