shouldShowRequired property
bool
get
shouldShowRequired
Implementation
bool get shouldShowRequired {
if (widget.isRequired) return true;
if (widget.validators != null) {
for (final v in widget.validators!) {
if (v == Validators.required) return true;
}
}
return false;
}