supportedExerciseModes function
- GeneratorDetails details
Returns the supported running exercise modes for the device represented by the given generator details.
This list does not include ExerciseMode.none.
Implementation
List<ExerciseMode> supportedExerciseModes(GeneratorDetails details) {
return [
if (supportsUnloadedExerciseModes(details.modelNumber)) ...[
if (details.modelNumber != kModel24RCA) ExerciseMode.unloaded,
ExerciseMode.unloadedFullSpeed,
],
ExerciseMode.loadedFullSpeed,
if (supportsEcoCycleMode(details.modelNumber)) ExerciseMode.ecoCycle,
];
}