calculateShowRetry method

bool calculateShowRetry(
  1. EventKeyLocationModel _eventKeyModel
)

calculates whether to show the retry option for the given EventKeyLocationModel

Implementation

bool calculateShowRetry(EventKeyLocationModel _eventKeyModel) {
  if ((_eventKeyModel.eventNotificationModel!.group != null) &&
      (isActionRequired(_eventKeyModel.eventNotificationModel!)) &&
      (_eventKeyModel.haveResponded)) {
    if (getActionString(_eventKeyModel.eventNotificationModel!,
            _eventKeyModel.haveResponded) ==
        'Pending request') {
      return true;
    }
    return false;
  }
  return false;
}