Threshold constructor
const
Threshold({
- Key? key,
- required double value,
- ThresholdDirection direction = ThresholdDirection.horizontal,
- Color color = Colors.red,
- double width = 2,
- List<
double> ? dashPattern, - bool showLabel = true,
- String? label,
- ThresholdLabelPosition labelPosition = ThresholdLabelPosition.end,
- TextStyle? labelStyle,
- Color? labelBackgroundColor,
- EdgeInsets labelPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
- double scale(
- 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,
});