newInstance method
Expression
newInstance(
- Iterable<
Expression> positionalArguments, [ - Map<
String, Expression> namedArguments = const {}, - List<
Reference> typeArguments = const []
override
Returns a new instance of this expression.
Implementation
@override
Expression newInstance(
Iterable<Expression> positionalArguments, [
Map<String, Expression> namedArguments = const {},
List<Reference> typeArguments = const [],
]) =>
throw UnsupportedError('Cannot instantiate a function type.');