ReferenceLine constructor

const ReferenceLine({
  1. Key? key,
  2. required Offset start,
  3. required Offset end,
  4. Color color = Colors.grey,
  5. double width = 1,
  6. List<double>? dashPattern,
  7. bool showMarkers = false,
  8. double markerRadius = 4,
  9. Color? markerColor,
  10. bool showLabel = false,
  11. String? label,
  12. TextStyle? labelStyle,
  13. Offset labelOffset = const Offset(0, -10),
  14. 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,
});