overlayColor property Null safety

Color? overlayColor
final

Color of the overlay drawn around the marker pointer.

If enableDragging is set to true, while touching the marker pointer in mobile and on hovering/clicking the marker pointer in web, the overlay will be displayed in the marker’s color by default with reduced opacity. If enableDragging is set to false, the overlay will not be displayed.

If it has to be hidden, Colors.transparent can be set to this property.

Defaults to null

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

Implementation

final Color? overlayColor;