backgroundGradient property
Background gradients for the button.
- backgroundGradient: The active gradient when the button is enabled. Overrides backgroundColor if provided.
- disabledBackgroundGradient: The gradient when the button is disabled. If null, a lighter/faded version of backgroundGradient is generated automatically. If both are null, falls back to disabledBackgroundColor or a lightened backgroundColor.
Implementation
final Gradient? backgroundGradient;