labelStyle property Null safety

TextStyle? labelStyle

The style to be applied to the chip's label.

The default label style is TextTheme.bodyText1 from the overall theme's ThemeData.textTheme. This only has an effect on widgets that respect the DefaultTextStyle, such as Text.

If TextStyle.color is a MaterialStateProperty<Color>, MaterialStateProperty.resolve is used for the following MaterialStates:

Implementation

//
/// This only has an effect on widgets that respect the [DefaultTextStyle],
/// such as [Text].
///
/// If [TextStyle.color] is a [MaterialStateProperty<Color>], [MaterialStateProperty.resolve]
/// is used for the following [MaterialState]s:
///
///  * [MaterialState.disabled].
///  * [MaterialState.selected].
///  * [MaterialState.hovered].
///  * [MaterialState.focused].
///  * [MaterialState.pressed].
TextStyle? get labelStyle;