createGroup method

dynamic createGroup(
  1. List<String> users,
  2. BuildContext context
)

Implementation

createGroup(List<String> users, BuildContext context) {
  mirrorFlyLog("group name", groupName.text);
  mirrorFlyLog("users", users.toString());
  mirrorFlyLog("group image", imagePath.value);
  Helper.showLoading(buildContext: context);
  Mirrorfly.createGroup(
      groupName: groupName.text.toString(),
      userList: users,
      image: imagePath.value,
      flyCallBack: (FlyResponse response) {
        Helper.hideLoading(context: context);
        if (response.isSuccess) {
          // Get.back();
          Navigator.pop(context);
          toToast(AppConstants.groupCreatedSuccessfully);
        }
      });
}