Threshold constructor

const Threshold({
  1. Input<ThresholdColor>? color,
  2. Input<ThresholdDirection>? direction,
  3. Input<String>? label,
  4. Input<ThresholdTargetAxis>? targetAxis,
  5. Input<double>? value,
})

Creates a new Threshold. color The state color for this threshold. Color is not allowed in a XyChart. direction The direction for the current threshold. Direction is not allowed in a XyChart. label A label for the threshold. targetAxis The target axis to use for plotting the threshold. Target axis is not allowed in a Scorecard. value The value of the threshold. The value should be defined in the native scale of the metric.

Implementation

const Threshold({
  this.color,
  this.direction,
  this.label,
  this.targetAxis,
  this.value,
});