stopExerciseApi function
- required BuildContext context,
- required int id,
Stop a remote exercise on the generator with the given id using the underlying backend API calls
Implementation
Future<void> stopExerciseApi({
required BuildContext context,
required int id,
}) async {
final api = await context.read(energyManagementV3ApiProvider.future);
final response = await api.kemApiV3DevicesIdExerciseStopPost(id: id);
assertSuccessfulResponse(response);
}