RadialGaugeAxis constructor

RadialGaugeAxis({
  1. required double minValue,
  2. required double maxValue,
  3. double minAngle = -150.0,
  4. double maxAngle = 150.0,
  5. double radius = 0.8,
  6. double? radiusAbsolute,
  7. double width = 0.2,
  8. double? widthAbsolute,
  9. List<RadialTicks>? ticks,
  10. List<RadialGaugePointer>? pointers,
  11. Color? color,
  12. Gradient? gradient,
  13. BlendMode? backgroundBlendMode,
  14. Border? border,
  15. BorderRadiusGeometry? borderRadius,
  16. List<RadialGaugeSegment>? segments,
  17. Offset? offsetAbsolute,
  18. Offset? offset,
  19. double rotation = 0,
})

Creates a radial gauge axis.

minValue is the minimum value of this axis, maxValue is the maximum value of this axis. minAngle is the minimum angle used to represent the minValue. maxAngle is the maximum angle used to represent the maxValue.

The body of the segment is painted in layers. The bottom-most layer is the color, which fills the box. Above that is the gradient, which also fills the box. Finally there is the image, the precise alignment of which is controlled by the DecorationImage class.

Implementation

RadialGaugeAxis({
  required double minValue,
  required double maxValue,
  double minAngle = -150.0,
  double maxAngle = 150.0,
  double radius = 0.8,
  double? radiusAbsolute,
  double width = 0.2,
  double? widthAbsolute,
  List<RadialTicks>? ticks,
  this.pointers,
  Color? color,
  Gradient? gradient,
  BlendMode? backgroundBlendMode,
  Border? border,
  BorderRadiusGeometry? borderRadius,
  this.segments,
  this.offsetAbsolute,
  this.offset,
  this.rotation = 0,
})  : assert(minValue != null),
      assert(maxValue != null),
      assert(minAngle != null),
      assert(maxAngle != null),
      super(
          minValue: minValue,
          maxValue: maxValue,
          minAngle: minAngle,
          maxAngle: maxAngle,
          ticks: ticks,
          radius: radius,
          radiusAbsolute: radiusAbsolute,
          width: width,
          widthAbsolute: widthAbsolute,
          color: color,
          gradient: gradient,
          backgroundBlendMode: backgroundBlendMode,
          border: border,
          borderRadius: borderRadius);