Segment constructor

Segment({
  1. int id = -1,
  2. Coordinate start,
  3. Coordinate end,
  4. SegmentFill myFill,
  5. SegmentFill otherFill,
})

Implementation

Segment({this.id = -1, this.start, this.end, this.myFill, this.otherFill}) {
  if (myFill == null) myFill = SegmentFill();
}