background property

Color? background
final

A variable to set the background color of the button.

If you want to show only the child widget that you provide, you should set this background color to "Colors.transparent".

Implementation

final Color? background;