ReferenceLine.horizontal constructor
ReferenceLine.horizontal({})
Creates a horizontal reference line.
Implementation
factory ReferenceLine.horizontal({
required double y,
required double startX,
required double endX,
Color color = Colors.grey,
double width = 1,
List<double>? dashPattern,
bool showLabel = false,
String? label,
TextStyle? labelStyle,
}) {
return ReferenceLine(
start: Offset(startX, y),
end: Offset(endX, y),
color: color,
width: width,
dashPattern: dashPattern,
showLabel: showLabel,
label: label,
labelStyle: labelStyle,
);
}