isMember method

  1. @override
bool isMember(
  1. AtContact atContact,
  2. AtGroup atGroup
)

Implementation

@override
bool isMember(AtContact atContact, AtGroup atGroup) {
  var result = false;
  var members = atGroup.members!;
  for (var contact in members) {
    if (contact.atSign.toString() == atContact.atSign.toString()) {
      return true;
    }
  }
  return result;
}