switchCase abstract method

SwitchCase switchCase(
  1. List<Label> labels,
  2. Token keyword,
  3. Expression expression,
  4. Token colon,
  5. List<Statement> statements,
)

Returns a newly created switch case. The list of labels can be null if there are no labels.

Implementation

SwitchCase switchCase(List<Label> labels, Token keyword,
    Expression expression, Token colon, List<Statement> statements);