constInstance method Null safety

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

Returns a const instance of this expression.

Implementation

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