fromValue static method
Implementation
static CoursePoint fromValue(int value) {
switch (value) {
case 0:
return CoursePoint.generic;
case 1:
return CoursePoint.summit;
case 2:
return CoursePoint.valley;
case 3:
return CoursePoint.water;
case 4:
return CoursePoint.food;
case 5:
return CoursePoint.danger;
case 6:
return CoursePoint.left;
case 7:
return CoursePoint.right;
case 8:
return CoursePoint.straight;
case 9:
return CoursePoint.firstAid;
case 10:
return CoursePoint.fourthCategory;
case 11:
return CoursePoint.thirdCategory;
case 12:
return CoursePoint.secondCategory;
case 13:
return CoursePoint.firstCategory;
case 14:
return CoursePoint.horsCategory;
case 15:
return CoursePoint.sprint;
case 16:
return CoursePoint.leftFork;
case 17:
return CoursePoint.rightFork;
case 18:
return CoursePoint.middleFork;
case 19:
return CoursePoint.slightLeft;
case 20:
return CoursePoint.sharpLeft;
case 21:
return CoursePoint.slightRight;
case 22:
return CoursePoint.sharpRight;
case 23:
return CoursePoint.uTurn;
case 24:
return CoursePoint.segmentStart;
case 25:
return CoursePoint.segmentEnd;
default:
throw ArgumentError.value(value);
}
}