prefixStyle property Null safety

TextStyle? prefixStyle
final

The style to use for the prefixText.

If prefixStyle is a MaterialStateTextStyle, then the effective text style can depend on the MaterialState.focused state, i.e. if the TextField is focused or not.

If null, defaults to the hintStyle.

See also:

  • suffixStyle, the equivalent but on the trailing edge.

Implementation

final TextStyle? prefixStyle;