SetOrMapLiteralImpl constructor
SetOrMapLiteralImpl({
- required Token? constKeyword,
- required TypeArgumentListImpl? typeArguments,
- required Token leftBracket,
- required List<
CollectionElementImpl> elements, - required Token rightBracket,
Initialize a newly created set or map literal. The constKeyword can be
null
if the literal is not a constant. The typeArguments
can be null
if no type arguments were declared. The elements
can be null
if the
set is empty.
Implementation
SetOrMapLiteralImpl({
required super.constKeyword,
required super.typeArguments,
required this.leftBracket,
required List<CollectionElementImpl> elements,
required this.rightBracket,
}) {
_elements._initialize(this, elements);
}