labelColor property

Color? labelColor
final

Optional explicit color for the button label.

When null, the label uses the configuration's natural foreground: CNButton.tint for non-filled styles, white for filled / borderedProminent / prominentGlass / prominentClearGlass. Set this to override that decision. The same colour is used on light and on dark glass; use labelColorLight and labelColorDark for one colour each. A button with a glassEffectUnionId or glassEffectId ignores it.

Implementation

final Color? labelColor;