listLiteral abstract method

ListLiteral listLiteral(
  1. Token? constKeyword,
  2. TypeArgumentList? typeArguments,
  3. Token leftBracket,
  4. List<CollectionElement> elements,
  5. 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);