constInstanceNamed method

  1. @override
Expression constInstanceNamed(
  1. String name,
  2. Iterable<Expression> positionalArguments,
  3. [Map<String, Expression> namedArguments = const {},
  4. 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 [],
]) =>
    throw UnsupportedError('Cannot "const" a function type.');