offsetUnit property Null safety

GaugeSizeUnit offsetUnit
final

Calculates the marker position either in logical pixel or radius factor.

Using GaugeSizeUnit, marker pointer position is calculated.

Defaults to GaugeSizeUnit.logicalPixel.

Also refer GaugeSizeUnit.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
            pointers: <GaugePointer>[MarkerPointer(value: 50,
            markerUnit: GaugeSizeUnit.factor, markerOffset = 0.2
            )],
           )]
       ));
}

Implementation

final GaugeSizeUnit offsetUnit;