allExerciseFrequencies function
- GeneratorDetails? details
Returns the supported running exercise frequencies for the device represented by the given generator details.
Implementation
List<ExerciseFrequency> allExerciseFrequencies(GeneratorDetails? details) {
return [
ExerciseFrequency.weekly,
ExerciseFrequency.biWeekly,
if (supportsMonthlyExerciseFrequency(details?.modelNumber))
ExerciseFrequency.monthly,
];
}