color property Null safety

Color? color
final

Specifies the color for marker pointer.

Defaults to null.

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

Implementation

final Color? color;