required

abstract var required: Boolean?(source)

if true, the label will indicate that the input is required.