value property

int value

Implementation

int get value {
  switch (this) {
    case Intensity.active:
      return 0;
    case Intensity.rest:
      return 1;
    case Intensity.warmup:
      return 2;
    case Intensity.cooldown:
      return 3;
    case Intensity.recovery:
      return 4;
    case Intensity.interval:
      return 5;
    case Intensity.other:
      return 6;
  }
}