lengthUnit property

GaugeSizeUnit lengthUnit
final

Calculates the tick length size either in logical pixel or radius factor.

Using GaugeSizeUnit, tick length size is calculated.

Defaults to GaugeSizeUnit.logicalPixel.

Also refer GaugeSizeUnit

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis
          (majorTickStyle:
             MajorTickStyle(lengthUnit: GaugeSizeUnit.factor,
             length:0.05),)]
       ));
}

Implementation

final GaugeSizeUnit lengthUnit;