length property

double length
final

Adjusts the tail 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 tail length is calculated by length * axis radius value.

Example: length value is 0.5 and axis radius is 100, tail 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 and lengthUnit is GaugeSizeUnit.factor.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis
         ( pointers: <GaugePointer>[
            NeedlePointer( tailStyle:
                TailStyle(width: 10,length: 0.2)
          )])]
       ));
}

Implementation

final double length;