removeUserApi function
Implementation
Future<Response> removeUserApi({
required BuildContext context,
required int? id,
required String userId,
}) async {
final container = ProviderScope.containerOf(context);
final api = await container.read(energyManagementV3ApiProvider.future);
final response = await api.kemApiV3HomeownerHomesIdUsersUserIdDelete(
id: id,
userId: userId,
);
assertSuccessfulResponse(response);
if (!context.mounted) return response;
await fullRefreshHomes(context);
return response;
}