getGroupMemberContact method

AtContact getGroupMemberContact(
  1. AtContact atcontact
)

creates a new AtContact object for a group member based on the provided atcontact

Implementation

AtContact getGroupMemberContact(AtContact atcontact) {
  var newContact = AtContact(atSign: atcontact.atSign);
  newContact.tags = {};
  newContact.tags!['isAccepted'] = false;
  newContact.tags!['isSharing'] = true;
  newContact.tags!['isExited'] = false;
  newContact.tags!['lat'] = null;
  newContact.tags!['long'] = null;
  newContact.tags!['shareFrom'] = -1;
  newContact.tags!['shareTo'] = -1;
  return newContact;
}