required

abstract override var required: Boolean?(source)

If true, the label is displayed as required and the input element is required.