required property

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

Whether the date and time entry is required.

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

Implementation

@Input()
bool required = false;