required property

bool get required

Whether the control is required.

This flag is a semantic hint used by UI/validators to indicate mandatory input.

Implementation

bool get required => formControl.required;