updateEvent function
void
updateEvent(
- EventNotificationModel eventData, {
- bool isAccepted = true,
- bool isSharing = true,
- bool isExited = false,
Implementation
void updateEvent(
EventNotificationModel eventData, {
bool isAccepted = true,
bool isSharing = true,
bool isExited = false,
}) {
EventKeyStreamService().actionOnEvent(
eventData, ATKEY_TYPE_ENUM.ACKNOWLEDGEEVENT,
isAccepted: true, isSharing: true, isExited: false);
///
// providerCallback<EventProvider>(NavService.navKey.currentContext,
// task: (t) => t.actionOnEvent(eventData, ATKEY_TYPE_ENUM.ACKNOWLEDGEEVENT,
// isAccepted: true, isSharing: true, isExited: false),
// taskName: (t) => t.UPDATE_EVENTS,
// text: 'Sending request to accept event',
// showDialog: false,
// onError: (t) {
// CustomToast().show('Something went wrong! ${t.toString()}',
// NavService.navKey.currentContext);
// },
// onSuccess: (t) {
// Navigator.of(NavService.navKey.currentContext).pop();
// Navigator.of(NavService.navKey.currentContext).pop();
// CustomToast().show('Request to accept event is submitted',
// NavService.navKey.currentContext);
// });
}