color property Null safety

Color? color
final

Specifies the range pointer color.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
            pointers: <GaugePointer>[RangePointer(
            color: Colors.red , value: 20)],
           )]
       ));
}

Implementation

final Color? color;