required

fun required(required: Boolean = true)

Require a value before the user can click the positive button.