getOtherMemberEventInfo method

EventInfo? getOtherMemberEventInfo(
  1. String _id,
  2. String _atsign
)

will return for event's for which i am creator

Implementation

EventInfo? getOtherMemberEventInfo(String _id, String _atsign) {
  _id = trimAtsignsFromKey(_id);

  // for (var key in MasterLocationService().locationReceivedData.entries) {
  if ((MasterLocationService().locationReceivedData[_atsign] != null) &&
      (MasterLocationService()
              .locationReceivedData[_atsign]!
              .locationSharingFor[_id] !=
          null)) {
    var _locationSharingFor = MasterLocationService()
        .locationReceivedData[_atsign]!
        .locationSharingFor[_id]!;

    return EventInfo(
      isSharing: _locationSharingFor.isSharing,
      isExited: _locationSharingFor.isExited,
      isAccepted: _locationSharingFor.isAccepted,
      from: _locationSharingFor.from,
    );
  }
  return null;
  // }
}