onEventModelTap method
handles the tap on an event model.
Implementation
onEventModelTap(
EventNotificationModel eventNotificationModel, bool haveResponded) {
if (isActionRequired(eventNotificationModel) &&
!isEventCancelled(eventNotificationModel)) {
if (haveResponded) {
eventNotificationModel.isUpdate = true;
EventsMapScreenData().moveToEventScreen(eventNotificationModel);
return null;
}
return showDialog<void>(
context: AtEventNotificationListener().navKey!.currentContext!,
barrierDismissible: false,
builder: (BuildContext context) {
return EventNotificationDialog(
eventData: eventNotificationModel,
key: UniqueKey(),
);
},
);
}
eventNotificationModel.isUpdate = true;
/// Move to map screen
EventsMapScreenData().moveToEventScreen(eventNotificationModel);
}