onLocationModelTap method
Implementation
void onLocationModelTap(
LocationNotificationModel locationNotificationModel, bool haveResponded) {
var currentAtsign = AtLocationNotificationListener().currentAtSign;
if (locationNotificationModel.key!
.contains(MixedConstants.SHARE_LOCATION)) {
locationNotificationModel.atsignCreator != currentAtsign
// ignore: unnecessary_statements
? (locationNotificationModel.isAccepted
? navigatorPushToMap(locationNotificationModel)
: (locationNotificationModel.isExited
? AtLocationNotificationListener().showMyDialog(
locationNotificationModel.atsignCreator,
locationNotificationModel)
: (haveResponded
? null
: AtLocationNotificationListener().showMyDialog(
locationNotificationModel.atsignCreator,
locationNotificationModel))))
: navigatorPushToMap(locationNotificationModel);
} else if (locationNotificationModel.key!
.contains(MixedConstants.REQUEST_LOCATION)) {
locationNotificationModel.atsignCreator == currentAtsign
// ignore: unnecessary_statements
? (locationNotificationModel.isAccepted
? navigatorPushToMap(locationNotificationModel)
: (locationNotificationModel.isExited
? AtLocationNotificationListener().showMyDialog(
locationNotificationModel.atsignCreator,
locationNotificationModel)
: (haveResponded
? null
: AtLocationNotificationListener().showMyDialog(
locationNotificationModel.atsignCreator,
locationNotificationModel))))
// ignore: unnecessary_statements
: (locationNotificationModel.isAccepted
? navigatorPushToMap(locationNotificationModel)
: null);
}
}