gradient property

Gradient? gradient
final

An optional gradient for the button background.

If not provided, a subtle lighting gradient is automatically generated for filled buttons (solid and tonal) to provide tactile depth.

Implementation

final Gradient? gradient;