required property

  1. @Input()
bool required
getter/setter pair

False if null dates are allowed.

If true, the embedded text field will display an error to the user if blank. If false, clearing the text field will set date to null.

Implementation

@Input()
bool required = true;