supportsUnloadedExerciseModes function

bool supportsUnloadedExerciseModes(
  1. String? modelNumber
)

Whether a generator with the given model number supports the ExerciseMode.unloaded and ExerciseMode.unloadedFullSpeed exercise modes.

Implementation

bool supportsUnloadedExerciseModes(String? modelNumber) {
  // Unloaded cycles are not supported in variable speed generators.
  // All other generator models can support unloaded exercises.
  return !kVSGModels.contains(modelNumber);
}