deleteMultipleNotification method

Future<Response> deleteMultipleNotification({
  1. required String notificationId,
})

To delete multiple notifications in whitelabel app user needs to use below API

Implementation

Future<http.Response> deleteMultipleNotification(
    {required String notificationId}) async {
  Uri url =
      Uri.parse("$_baseUrl/notification/delete/multiple/$notificationId}");

  http.Response response = await http.Client()
      .delete(url, headers: kAuthenticatedGetRequestHeader);

  if (response.statusCode == 200) {
    printMessage(
        "DELETE MULTIPLE NOTIFICATION RESPONSE = ${response.statusCode}");
    return response;
  } else {
    printMessage(
        "DELETE MULTIPLE NOTIFICATION RESPONSE = ${response.statusCode}");
    return response;
  }
}