newInstanceNamed method
Expression
newInstanceNamed(
- String name,
- Iterable<
Expression> positionalArguments, [ - Map<
String, Expression> namedArguments = const {}, - List<
Reference> typeArguments = const [],
Returns a new instance of this expression with a named constructor.
Implementation
Expression newInstanceNamed(
String name,
Iterable<Expression> positionalArguments, [
Map<String, Expression> namedArguments = const {},
List<Reference> typeArguments = const [],
]) =>
InvokeExpression.newOf(
this,
positionalArguments.toList(),
namedArguments,
typeArguments,
name,
);