GaugeAnnotation constructor

GaugeAnnotation(
  1. {Widget widget,
  2. double axisValue,
  3. GaugeAlignment horizontalAlignment: GaugeAlignment.center,
  4. double angle,
  5. GaugeAlignment verticalAlignment: GaugeAlignment.center,
  6. double positionFactor: 0}
)

Create an GaugeAnnotation with the required properties.

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

Implementation

GaugeAnnotation(
    {this.widget,
    this.axisValue,
    this.horizontalAlignment = GaugeAlignment.center,
    this.angle,
    this.verticalAlignment = GaugeAlignment.center,
    this.positionFactor = 0})
    : assert(positionFactor != null, 'Position factor must not be null.'),
      assert(
          positionFactor >= 0, 'Position factor must be greater than zero.');