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