isRequired property

bool isRequired
@Input('required'), read / write

sets the required state of input useful for showing the html5 form validation if set to true.

Implementation

@Input('required')
bool isRequired = false;