NotificationListFunction method
dynamic
NotificationListFunction()
Implementation
NotificationListFunction() async {
var decodedResponse;
try {
http.Response response = await http.get(
Uri.parse('${SDK_BASE_URL}api/notification_api/index'),
headers: {
"Authorization": SignUpController.currentUserToken,
});
decodedResponse = json.decode(response.body);
Notification = decodedResponse['notification'];
} catch (e) {
ErrorListner(
apiname: 'api/notification_api/index',
responsed: "${decodedResponse}",
request: '',
app_error: '${e}');
}
}