infoPage method

dynamic infoPage(
  1. BuildContext context,
  2. ProfileDetails profile
)

Implementation

infoPage(BuildContext context, ProfileDetails profile) {
  if (profile.isGroupProfile ?? false) {
    Navigator.push(
        context,
        MaterialPageRoute(
            builder: (con) => GroupInfoView(jid: profile.jid.checkNull())));
  } else {
    Navigator.push(
        context,
        MaterialPageRoute(
            builder: (con) => ChatInfoView(jid: profile.jid.checkNull())));
    // Get.toNamed(Routes.chatInfo, arguments: profile)?.then((value) {});
  }
}