required

val required: Boolean? = false(source)

This attribute indicates if the instance must have a value, and not be undefined.

This is false by default, making the instance optional.