infoPage method

dynamic infoPage()

Implementation

infoPage() {
  setOnGoingUserGone();
  if (profile.isGroupProfile ?? false) {
    NavUtils.toNamed(Routes.groupInfo, arguments: profile)?.then((value) {
      if (value != null) {
        profile_(value as ProfileDetails);
        isBlocked(profile.isBlocked);
        debugPrint("value--> ${profile.isGroupProfile}");
        chatList.clear();
        _loadMessages();
      }
      checkAdminBlocked();
      memberOfGroup();
      setChatStatus();
      setOnGoingUserAvail();
    });
  } else {
    NavUtils.toNamed(Routes.chatInfo,
            arguments: ChatInfoArguments(chatJid: profile.jid.checkNull()))
        ?.then((value) {
      debugPrint("chat info-->$value");
      setOnGoingUserAvail();
    });
  }
}