sizeUnit property Null safety

GaugeSizeUnit sizeUnit
final

Calculates the position and size for pointer either in logical pixel or radius factor.

Using GaugeSizeUnit, range pointer position is calculated.

Defaults to GaugeSizeUnit.logicalPixel.

Also refer GaugeSizeUnit.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
            pointers: <GaugePointer>[RangePointer(pointerOffset: 0.3,
            value: 20,
            sizeUnit: GaugeSizeUnit.factor, width: 0.5
            )],
           )]
       ));
}

Implementation

final GaugeSizeUnit sizeUnit;