ChartPainter constructor

ChartPainter(
  1. double _progress,
  2. LineChart _chart,
  3. bool _horizontalDragActive,
  4. double _horizontalDragPosition,
  5. TextStyle? style, {
  6. TapText? tapText,
  7. required Color gridColor,
  8. required Color toolTipColor,
  9. List<Legend>? legends = const [],
  10. bool? showMarkerLines = false,
  11. List<DateTime>? verticalMarker = const [],
  12. Color? verticalMarkerColor,
  13. List<Icon>? verticalMarkerIcon = const [],
  14. Color? iconBackgroundColor,
  15. bool? fillMarkerLines = false,
  16. double? innerGridStrokeWidth = 0.0,
  17. List<MaxMin>? filledMarkerLinesValues = const [],
  18. bool? legendsRightLandscapeMode = false,
})

Implementation

ChartPainter(
  this._progress,
  this._chart,
  this._horizontalDragActive,
  this._horizontalDragPosition,
  this.style, {
  this.tapText,
  required Color gridColor,
  required Color toolTipColor,
  this.legends = const [],
  this.showMarkerLines = false,
  this.verticalMarker = const [],
  this.verticalMarkerColor,
  this.verticalMarkerIcon = const [],
  this.iconBackgroundColor,
  this.fillMarkerLines = false,
  this.innerGridStrokeWidth = 0.0,
  this.filledMarkerLinesValues = const [],
  this.legendsRightLandscapeMode = false,
}) {
  tapText = tapText ?? _defaultTapText;
  _tooltipPainter.color = toolTipColor;
  _gridPainter.color = gridColor;
  _linePainter.color = gridColor;
}