calculateShowRetry function
Determines whether to show the retry option for a location notification
Implementation
bool calculateShowRetry(KeyLocationModel keyLocationModel) {
if (keyLocationModel.locationNotificationModel!.key!
.contains('sharelocation')) {
if ((keyLocationModel.locationNotificationModel!.atsignCreator !=
AtLocationNotificationListener().currentAtSign) &&
(!keyLocationModel.locationNotificationModel!.isAccepted) &&
(!keyLocationModel.locationNotificationModel!.isExited) &&
(keyLocationModel.haveResponded!)) return true;
return false;
} else {
if ((keyLocationModel.locationNotificationModel!.atsignCreator ==
AtLocationNotificationListener().currentAtSign) &&
(!keyLocationModel.locationNotificationModel!.isAccepted) &&
(!keyLocationModel.locationNotificationModel!.isExited) &&
(keyLocationModel.haveResponded!)) return true;
return false;
}
}