GaugeAnnotation constructor

const GaugeAnnotation({
  1. Key? key,
  2. double? axisValue,
  3. GaugeAlignment horizontalAlignment = GaugeAlignment.center,
  4. double? angle,
  5. GaugeAlignment verticalAlignment = GaugeAlignment.center,
  6. double positionFactor = 0,
  7. required Widget widget,
})

Create an GaugeAnnotation with the required properties.

The arguments positionFactor must not be null and positionFactor must be non-negative.

Implementation

const GaugeAnnotation(
    {Key? key,
    this.axisValue,
    this.horizontalAlignment = GaugeAlignment.center,
    this.angle,
    this.verticalAlignment = GaugeAlignment.center,
    this.positionFactor = 0,
    required this.widget})
    : assert(
          positionFactor >= 0, 'Position factor must be greater than zero.'),
      super(key: key, child: widget);