SwitchMemberImpl constructor

SwitchMemberImpl({
  1. required List<LabelImpl> labels,
  2. required Token keyword,
  3. required Token colon,
  4. required List<StatementImpl> statements,
})

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

Implementation

SwitchMemberImpl({
  required List<LabelImpl> labels,
  required this.keyword,
  required this.colon,
  required List<StatementImpl> statements,
}) {
  _labels._initialize(this, labels);
  _statements._initialize(this, statements);
}