AbstractGeometryItem constructor

AbstractGeometryItem({
  1. ArrowType arrowType = ArrowType.none,
  2. ArrowDirection beginArrowDirection = ArrowDirection.none,
  3. int beginSlot = -1,
  4. ArrowDirection endArrowDirection = ArrowDirection.none,
  5. int endSlot = -1,
  6. RestrictionType restrictionType = RestrictionType.none,
  7. ShapeForm shapeForm = ShapeForm.line,
  8. ShapeType shapeType = ShapeType.street,
  9. int slotAllocation = 0,
})

Creates an AbstractGeometryItem instance.

API users should typically not create instances directly. Use TurnDetails.abstractGeometry instead.

Parameters

  • arrowType: The arrow type for this geometry item.
  • beginArrowDirection: The arrow direction at the begin of this geometry item.
  • beginSlot: The slot index where the shape begin is attached to the anchor.
  • endArrowDirection: The arrow direction at the end of this geometry item.
  • endSlot: The slot index where the shape end is attached to the anchor.
  • restrictionType: The restriction type for this geometry item.
  • shapeForm: The shape form for this geometry item.
  • shapeType: The shape type for this geometry item.
  • slotAllocation: The slot allocation for this geometry item.

Implementation

AbstractGeometryItem({
  this.arrowType = ArrowType.none,
  this.beginArrowDirection = ArrowDirection.none,
  this.beginSlot = -1,
  this.endArrowDirection = ArrowDirection.none,
  this.endSlot = -1,
  this.restrictionType = RestrictionType.none,
  this.shapeForm = ShapeForm.line,
  this.shapeType = ShapeType.street,
  this.slotAllocation = 0,
});