labelTextStyle property

MaterialStateProperty<TextStyle?>? labelTextStyle
final

The label style of the popup menu item.

When ThemeData.useMaterial3 is true, this styles the text of the popup menu item.

If this property is null, then PopupMenuThemeData.labelTextStyle is used. If PopupMenuThemeData.labelTextStyle is also null, then TextTheme.labelLarge is used with the ColorScheme.onSurface color when popup menu item is enabled and the ColorScheme.onSurface color with 0.38 opacity when the popup menu item is disabled.

Implementation

final MaterialStateProperty<TextStyle?>? labelTextStyle;