errorText property

String? errorText

Text that appears below the InputDecorator.child and the border.

If non-null, the border's color animates to red and the helperText is not shown.

In a TextFormField, this is overridden by the value returned from TextFormField.validator, if that is not null.

If a more elaborate error is required, consider using error instead.

Only one of error and errorText can be specified.


final String? errorText;