LineSeries constructor

LineSeries({
  1. required Map<int, num> data,
  2. ChartScale? scale,
  3. String? color,
  4. Duration? interval,
  5. IntervalAlignment? alignment,
  6. String valueTitle = 'value',
  7. double smoothing = 0.0,
  8. int lineWidth = 1,
  9. int pointRadius = 2,
  10. int? hoverPointRadius,
  11. String? shadowColor,
})

Implementation

LineSeries(
    {required super.data,
    super.scale,
    super.color,
    super.interval,
    super.alignment,
    super.valueTitle = 'value',
    this.smoothing = 0.0,
    this.lineWidth = 1,
    this.pointRadius = 2,
    this.hoverPointRadius,
    String? shadowColor}) {
  this.shadowColor = shadowColor ?? (color.startsWith('#') ? '${color}11' : null);
}