required property
Whether or not the input is required.
If there's no input text, a required input will show a validation error when it's first blurred.
Implementation
@Input()
bool required = false;
Whether or not the input is required.
If there's no input text, a required input will show a validation error when it's first blurred.
@Input()
bool required = false;