onEventModelTap method

dynamic onEventModelTap(
  1. EventNotificationModel eventNotificationModel,
  2. bool haveResponded
)

Implementation

onEventModelTap(
    EventNotificationModel eventNotificationModel, bool haveResponded) {
  if (isActionRequired(eventNotificationModel) &&
      !eventNotificationModel.isCancelled!) {
    if (haveResponded) {
      return null;
    }
    return showDialog<void>(
      context: AtEventNotificationListener().navKey!.currentContext!,
      barrierDismissible: true,
      builder: (BuildContext context) {
        return EventNotificationDialog(eventData: eventNotificationModel);
      },
    );
  }

  eventNotificationModel.isUpdate = true;

  /// Move to map screen
  EventsMapScreenData().moveToEventScreen(eventNotificationModel);
}