PointsLine constructor

PointsLine({
  1. double lineWidth = 2,
  2. double pointRadius = 0,
  3. Color? pointColor,
  4. double? pointInnerRadius,
  5. Color? pointInnerColor,
  6. bool isCurve = false,
  7. required List<PointData> points,
  8. bool isShowPoint = true,
  9. bool isShowPointText = false,
  10. List<Color>? shaderColors,
  11. Color lineColor = Colors.purple,
})

Implementation

PointsLine(
    {this.lineWidth = 2,
    this.pointRadius = 0,
    this.pointColor,
    this.pointInnerRadius,
    this.pointInnerColor,
    this.isCurve = false,
    required this.points,
    this.isShowPoint = true,
    this.isShowPointText = false,
    this.shaderColors,
    this.lineColor = Colors.purple}) {
  pointColor ??= lineColor;
  pointInnerColor ??= lineColor;
  pointInnerRadius ??= pointRadius - 1.5;
}