effectiveErrorText property
errorText first, then the legacy invalidFeedbackText while the field is invalid, then the message of the automatic validation.
Implementation
@override
String get effectiveErrorText {
final externalMessage = errorText.trim();
if (externalMessage.isNotEmpty) {
return externalMessage;
}
final legacyMessage = invalidFeedbackText.trim();
if (legacyMessage.isNotEmpty && effectiveInvalid) {
return legacyMessage;
}
return validationIssue?.message ?? '';
}