getStepType method

StepType getStepType(
  1. int index,
  2. bool bluntTail,
  3. bool bluntHead,
  4. int stepCount,
)

Implementation

StepType getStepType(
    int index, bool bluntTail, bool bluntHead, int stepCount) {
  if (index == 1 && bluntTail) {
    return StepType.arrow;
  } else if (index == stepCount && bluntHead) {
    return StepType.chevronBlunt;
  } else {
    return StepType.chevron;
  }
}