color property Null safety

Color? color
final

Specifies the range color.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
         ranges: <GaugeRange>[GaugeRange(startValue: 50,
         endValue: 100, color: Colors.blue)],
           )]
       ));
}

Implementation

final Color? color;