PlotBand constructor

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

Creating an argument constructor of PlotBand class.

Implementation

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