ConstrainedSegment constructor

const ConstrainedSegment(
  1. String name,
  2. String pattern
)

Captures one segment as name, if it matches pattern.

Implementation

const ConstrainedSegment(this.name, this.pattern);