GridData constructor

GridData({
  1. bool? show,
  2. String? id,
  3. double? left,
  4. double? top,
  5. double? right,
  6. double? bottom,
  7. double? width,
  8. double? height,
  9. bool? containLabel,
  10. String? backgroundColor,
  11. String? borderColor,
  12. double? borderWidth,
  13. double horizontalInterval = 0.5,
  14. String horizontalColor = 'rgba(0, 0, 0, 0.1)',
  15. double horizontalWidth = 0.5,
  16. List<int> horizontalDashArray = const [5, 5],
  17. String verticalColor = 'rgba(0, 0, 0, 0.1)',
  18. double verticalWidth = 0.5,
  19. List<int> verticalDashArray = const [5, 5],
  20. bool showHorizontalLines = true,
  21. bool showVerticalLines = true,
  22. String color = 'rgba(0, 0, 0, 0.1)',
  23. ChartLineStyle? lineStyle,
})

Implementation

GridData({
  this.show,
  this.id,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.width,
  this.height,
  this.containLabel,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth,
  this.horizontalInterval = 0.5,
  this.horizontalColor = 'rgba(0, 0, 0, 0.1)',
  this.horizontalWidth = 0.5,
  this.horizontalDashArray = const [5, 5],
  this.verticalColor = 'rgba(0, 0, 0, 0.1)',
  this.verticalWidth = 0.5,
  this.verticalDashArray = const [5, 5],
  this.showHorizontalLines = true,
  this.showVerticalLines = true,
  this.color = 'rgba(0, 0, 0, 0.1)',
  ChartLineStyle? lineStyle,
}) : lineStyle = lineStyle ?? ChartLineStyle();