linearGradient property

LinearGradient? linearGradient
final

linearGradient Sets the gradient background of the ValueBar

  • NOTE : If linearGradient is given in ValueBar the color property will be ignored
LinearGauge (
 valueBar: [
ValueBar(
  linearGradient: LinearGradient(
   colors: [Colors.blue, Colors.pink],),
   value: 20,
   enableAnimation: true,
   animationType: Curves.linear
 )])

const LinearGauge( linearGaugeBoxDecoration: LinearGaugeBoxDecoration(

         linearGradient: LinearGradient(
           colors: [Colors.blue, Colors.pink],
         ),
       ),
     ),

Implementation

final LinearGradient? linearGradient;