selectContact method
Implementation
void selectContact(ContactResultModel contact) {
if (contact.userId != ZenRtcSocket.instance.identity?.userId) {
selectedContactNotifier.value = contact;
nickNameController.text = contact.name;
currentStep.value = 1;
} else {
ZenRtcHelper.showCommonSnackbar(
title: "Invalid Contact Selection",
subtitle: "You cannot add or call yourself as a contact.",
icon: Icons.error_outline,
backgroundColor: Colors.red,
);
}
}