getDashboardData function
Future<void>
getDashboardData()
Implementation
Future<void> getDashboardData() async {
log("--------------Listing Api Call -------------");
await getListingList().then((value) async {
if (value?.listingListData != null) {
//Reminder
value?.listingListData!.forEach((element) {});
// appStore.listingList?.clear();
appStore.addListingData(value!.listingListData!);
}
// Get Event Listing API Calling
await getEventListing();
// Get booking ticket api
if (appStore.isLoggedIn) {
await bookingList();
}
//Get Event Feed API Calling
await getEventFeed();
}).catchError((e) {
toast(e.toString(), print: true);
});
}