Threshold constructor

const Threshold({
  1. Key? key,
  2. required double value,
  3. ThresholdDirection direction = ThresholdDirection.horizontal,
  4. Color color = Colors.red,
  5. double width = 2,
  6. List<double>? dashPattern,
  7. bool showLabel = true,
  8. String? label,
  9. ThresholdLabelPosition labelPosition = ThresholdLabelPosition.end,
  10. TextStyle? labelStyle,
  11. Color? labelBackgroundColor,
  12. EdgeInsets labelPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  13. double scale(
    1. double value
    )?,
})

Implementation

const Threshold({
  super.key,
  required this.value,
  this.direction = ThresholdDirection.horizontal,
  this.color = Colors.red,
  this.width = 2,
  this.dashPattern,
  this.showLabel = true,
  this.label,
  this.labelPosition = ThresholdLabelPosition.end,
  this.labelStyle,
  this.labelBackgroundColor,
  this.labelPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  this.scale,
});