newInstance method Null safety

Expression newInstance(
  1. Iterable<Expression> positionalArguments,
  2. [Map<String, Expression> namedArguments = const {},
  3. List<Reference> typeArguments = const []]
)

Returns a new instance of this expression.

Implementation

Expression newInstance(
  Iterable<Expression> positionalArguments, [
  Map<String, Expression> namedArguments = const {},
  List<Reference> typeArguments = const [],
]) =>
    InvokeExpression.newOf(
      this,
      positionalArguments.toList(),
      namedArguments,
      typeArguments,
    );