markerOffset property

double markerOffset
final

Adjusts the marker pointer position.

You can specify position value either in logical pixel or radius factor using the offsetUnit property. if offsetUnit is GaugeSizeUnit.factor, value will be given from 0 to

  1. Here pointer placing position is calculated by markerOffset * axis radius value.

Example: markerOffset value is 0.2 and axis radius is 100, pointer is moving 20(0.2 * 100) logical pixels from axis outer radius. if offsetUnit is GaugeSizeUnit.logicalPixel, defined value distance pointer will move from the outer radius axis.

When you specify markerOffset is negative, the pointer will be positioned outside the axis.

Defaults to 0 and offsetUnit is GaugeSizeUnit.logicalPixel

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

Implementation

final double markerOffset;