PlotBand constructor

const PlotBand({
  1. bool isVisible = true,
  2. dynamic start,
  3. dynamic end,
  4. dynamic associatedAxisStart,
  5. dynamic associatedAxisEnd,
  6. Color color = Colors.grey,
  7. LinearGradient? gradient,
  8. double opacity = 1.0,
  9. Color borderColor = Colors.transparent,
  10. double borderWidth = 2,
  11. List<double> dashArray = const <double>[0, 0],
  12. String? text,
  13. TextStyle? textStyle,
  14. int? textAngle,
  15. String? verticalTextPadding,
  16. String? horizontalTextPadding,
  17. TextAnchor verticalTextAlignment = TextAnchor.middle,
  18. TextAnchor horizontalTextAlignment = TextAnchor.middle,
  19. bool isRepeatable = false,
  20. dynamic repeatEvery = 1,
  21. dynamic repeatUntil,
  22. dynamic size,
  23. DateTimeIntervalType sizeType = DateTimeIntervalType.auto,
  24. bool shouldRenderAboveSeries = false,
})

Creating an argument constructor of PlotBand class.

Implementation

const PlotBand({
  this.isVisible = true,
  this.start,
  this.end,
  this.associatedAxisStart,
  this.associatedAxisEnd,
  this.color = Colors.grey,
  this.gradient,
  this.opacity = 1.0,
  this.borderColor = Colors.transparent,
  this.borderWidth = 2,
  this.dashArray = const <double>[0, 0],
  this.text,
  this.textStyle,
  this.textAngle,
  this.verticalTextPadding,
  this.horizontalTextPadding,
  this.verticalTextAlignment = TextAnchor.middle,
  this.horizontalTextAlignment = TextAnchor.middle,
  this.isRepeatable = false,
  this.repeatEvery = 1,
  this.repeatUntil,
  this.size,
  this.sizeType = DateTimeIntervalType.auto,
  this.shouldRenderAboveSeries = false,
});