ReferenceLine constructor
const
ReferenceLine({
- Key? key,
- required Offset start,
- required Offset end,
- Color color = Colors.grey,
- double width = 1,
- List<
double> ? dashPattern, - bool showMarkers = false,
- double markerRadius = 4,
- Color? markerColor,
- bool showLabel = false,
- String? label,
- TextStyle? labelStyle,
- Offset labelOffset = const Offset(0, -10),
- VoidCallback? onTap,
Implementation
const ReferenceLine({
super.key,
required this.start,
required this.end,
this.color = Colors.grey,
this.width = 1,
this.dashPattern,
this.showMarkers = false,
this.markerRadius = 4,
this.markerColor,
this.showLabel = false,
this.label,
this.labelStyle,
this.labelOffset = const Offset(0, -10),
this.onTap,
});