textColor property
The color to use for this button's text.
The button's Material.textStyle will be the current theme's button text
style, TextTheme.button
of ThemeData.textTheme, configured with this
color.
The default text color depends on the button theme's text theme, ButtonThemeData.textTheme.
If textColor is a MaterialStateProperty<Color>, disabledTextColor will be ignored.
See also:
- disabledTextColor, the text color to use when the button has been disabled.
Implementation
final Color? textColor;