deleteNotification method
To delete notification in whitelabel app user needs to use below API
Implementation
Future<http.Response> deleteNotification(
{required int notificationId}) async {
Uri url = Uri.parse("$_baseUrl/notification/delete/$notificationId}");
http.Response response = await http.Client()
.delete(url, headers: kAuthenticatedGetRequestHeader);
if (response.statusCode == 200) {
printMessage("DELETE NOTIFICATION RESPONSE = ${response.statusCode}");
return response;
} else {
printMessage("DELETE NOTIFICATION RESPONSE = ${response.statusCode}");
return response;
}
}