goToAddParticipantsPage method

dynamic goToAddParticipantsPage(
  1. BuildContext context
)

Implementation

goToAddParticipantsPage(BuildContext context) {
  if (groupName.text.trim().isNotEmpty) {
    //Get.toNamed(Routes.ADD_PARTICIPANTS);
    // Get.toNamed(Routes.contacts, arguments: {"forward" : false,"group":true,"groupJid":"" })?.then((value){
    //   if(value!=null){
    //     createGroup(value as List<String>, context);
    //   }
    // });
    Navigator.push(
            context,
            MaterialPageRoute(
                builder: (con) =>
                    const ContactListView(group: true, groupJid: "")))
        .then((value) {
      if (value != null) {
        createGroup(value as List<String>, context);
      }
    });
  } else {
    toToast(AppConstants.pleaseProvideGroupName);
  }
}