public DialogListBuilder add(BaseDialog dialog) {
        if (dialogs == null) {
            dialogs = new ArrayList<>();
        }
        if (dialog == null || dialog.isShow() || dialog.isPreShow()) {
            return this;
        }
        dialog.setDialogListBuilder(this);
        dialogs.add(dialog);
        return this;
    }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2022/8/8 15:08
DialogX/src/main/java/com/kongzue/dialogx/util/DialogListBuilder.java