lengthUnit property

GaugeSizeUnit lengthUnit
final

Calculates the needle pointer length either in logical pixel or radius factor.

Using GaugeSizeUnit, needle pointer length is calculated.

Defaults to GaugeSizeUnit.factor.

Also refer GaugeSizeUnit.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis
         ( pointers: <GaugePointer>[
            NeedlePointer( needleLength: 30,
            lengthUnit: GaugeSizeUnit.logicalPixel
          )])]
       ));
}

Implementation

final GaugeSizeUnit lengthUnit;