needleLength property

double needleLength
final

Adjusts the needle pointer length from center.

You can specify length value either in logical pixel or radius factor using the lengthUnit property. if lengthUnit is GaugeSizeUnit.factor, value will be given from 0 to 1. Here pointer length is calculated by needleLength * axis radius value.

Example: needleLength value is 0.5 and axis radius is 100, pointer length is 50(0.5 * 100) logical pixels from axis center. if lengthUnit is GaugeSizeUnit.logicalPixel, defined value length from axis center.

Defaults to 0.6 and lengthUnit is GaugeSizeUnit.factor.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis
         ( pointers: <GaugePointer>[
            NeedlePointer( needleLength: 0.8, value: 20,
          )])]
       ));
}

Implementation

final double needleLength;