rangeOffset property Null safety

double rangeOffset
final

Adjusts the range position in gauge.

You can specify position value either in logical pixel or radius factor using the sizeUnit property. if sizeUnit is GaugeSizeUnit.factor, value will be given from 0 to 1. Here range placing position is calculated by rangeOffset * axis radius value.

Example: rangeOffset value is 0.2 and axis radius is 100, range is moving 20(0.2 * 100) logical pixels from axis outer radius. If sizeUnit is GaugeSizeUnit.logicalPixel, the given value distance range moves from the outer radius axis.

When you specify rangeOffset is negative, the range will be positioned outside the axis.

Defaults to 0 and sizeUnit is GaugeSizeUnit.logicalPixel.

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
         ranges: <GaugeRange>[GaugeRange(startValue: 50,
         endValue: 100, rangeOffset: 10)],
           )]
       ));
}

Implementation

final double rangeOffset;