listLiteral abstract method
ListLiteral
listLiteral(
- Token? constKeyword,
- TypeArgumentList? typeArguments,
- Token leftBracket,
- List<
CollectionElement> elements, - Token rightBracket,
Returns a newly created list 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 list of elements
can be null
if the
list is empty.
Implementation
ListLiteral listLiteral(Token? constKeyword, TypeArgumentList? typeArguments,
Token leftBracket, List<CollectionElement> elements, Token rightBracket);