onItemTap method

void onItemTap(
  1. BuildContext context,
  2. Group group
)

Implementation

void onItemTap(BuildContext context, Group group) {
  if (group.hasJoined) {
    navigateToMessagesScreen(group: group);
  } else if (group.type == GroupTypeConstants.password) {
    navigateToJoinProtectedGroupScreen(group: group);
  } else if (group.type == GroupTypeConstants.public) {
    _joinGroup(guid: group.guid, groupType: group.type);
  }
}