getCreatorDetails function

LocationInfo? getCreatorDetails(
  1. LocationNotificationModel locationNotificationModel
)

Returns the creator details for a location notification model

Implementation

LocationInfo? getCreatorDetails(
    LocationNotificationModel locationNotificationModel) {
  if (!compareAtSign(locationNotificationModel.atsignCreator!,
      AtLocationNotificationListener().currentAtSign!)) {
    return getOtherMemberLocationInfo(locationNotificationModel.key!,
        locationNotificationModel.atsignCreator!);
  }

  return getMyLocationInfo(locationNotificationModel);
}