errorStyle property Null safety

TextStyle? errorStyle

The style to use for the InputDecoration.errorText.

If null, defaults of a value derived from the base TextStyle for the input field and the current Theme.

By default the color of style will be used by the label of InputDecoration if InputDecoration.errorText is not null. See InputDecoration.labelStyle or InputDecoration.floatingLabelStyle for an example of how to replicate this behavior if you have specified either style.


final TextStyle? errorStyle;