gradient property

LinearGradient? gradient
final

Specifies the gradient colors for an axis track.

Defaults to null.

This snippet shows how to set gradient colors for an axis track.


SfLinearGauge(
axisLineStyle: LinearAxisLineStyle(
gradient: LinearGradient(colors: [
Colors.red,
Colors.orange,
Colors.green,
], stops: <double>[
0.3,
0.5,
0.8 ]),))

Implementation

final LinearGradient? gradient;