Android Kotlin-如何设置DialogInterface.OnClickListener的默认值作为函数参数?

这是我的函数声明:

fun MyDialog(ctx: Context, msg: String, yestext: String = "", OnYes: DialogInterface.OnClickListener): AlertDialog

如何为“ OnYes:DialogInterface.OnClickListener”设置默认值?

我已经尝试过OnYes:DialogInterface.OnClickListener = null,但是不起作用。