unStashApiWithoutCtx function
unStash api without ctx function
Implementation
Future unStashApiWithoutCtx({BuildContext? context}) async {
HtifyWithoutContext notify = HtifyWithoutContext.notification();
final SharedPreferences prefs = await SharedPreferences.getInstance();
String notifyToken = prefs.getString('notify_token') ?? '';
return await notify.get(
context: context,
'${routes['unStash']}',
header: {'Notifpal-Auth': notifyToken});
}