fromValue static method
Implementation
static Intensity fromValue(int value) {
switch (value) {
case 0:
return Intensity.active;
case 1:
return Intensity.rest;
case 2:
return Intensity.warmup;
case 3:
return Intensity.cooldown;
case 4:
return Intensity.recovery;
case 5:
return Intensity.interval;
case 6:
return Intensity.other;
default:
throw ArgumentError.value(value);
}
}