Segment constructor

Segment(
  1. String content,
  2. SegmentType type
)

Implementation

Segment(this.content, this.type) {
  _checkForInvalidContents();
}