newInstanceNamed method Null safety

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

Returns a new instance of this expression with a named constructor.

Implementation

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