validationResult property

SemanticsValidationResult validationResult
final

Describes the validation result for a form field represented by this widget.

Providing a validation result helps assistive technologies, such as screen readers, to communicate to the user whether they provided correct information in a form.

Defaults to SemanticsValidationResult.none if not set, which means no validation information is available for the respective semantics node.

For a list of available validation results, see SemanticsValidationResult.

Implementation

final SemanticsValidationResult validationResult;