style property

TextStyle? style
final

The style to use for the text being edited.

This text style is also used as the base style for the decoration.

If null, TextTheme.bodyLarge will be used. When the text field is disabled, TextTheme.bodyLarge with an opacity of 0.38 will be used instead.

If null and ThemeData.useMaterial3 is false, TextTheme.titleMedium will be used. When the text field is disabled, TextTheme.titleMedium with ThemeData.disabledColor will be used instead.

Implementation

final TextStyle? style;