unStashApi function

Future unStashApi(
  1. BuildContext context
)

unStash api function

Implementation

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