AlternationGroup constructor

const AlternationGroup(
  1. List<RegExpComponent> expressions
)

Constructs a group that combine expressions into a new expression where each expression is separated by a vertical bar (|), indicating an OR operator

Implementation

const AlternationGroup(this.expressions,);