color property Null safety

Color? color

The button's fill color, displayed by its Material, while it is in its default (unpressed, enabled) state.

The default fill color is the theme's button color, ThemeData.buttonColor.

See also:

  • disabledColor - the fill color of the button when the button is disabled.


final Color? color;