SparkLineDecoration constructor

SparkLineDecoration({
  1. String? id,
  2. bool fill = false,
  3. bool smoothPoints = false,
  4. double lineWidth = 1.0,
  5. Color lineColor = Colors.red,
  6. double startPosition = 0.5,
  7. Gradient? gradient,
  8. int listIndex = 0,
  9. List<double>? dashArray,
  10. bool stretchLine = false,
})

Constructor for sparkline decoration

Implementation

SparkLineDecoration({
  this.id,
  this.fill = false,
  bool smoothPoints = false,
  this.lineWidth = 1.0,
  this.lineColor = Colors.red,
  this.startPosition = 0.5,
  this.gradient,
  this.listIndex = 0,
  this.dashArray,
  bool stretchLine = false,
})  : _smoothPoints = smoothPoints ? 1.0 : 0.0,
      _stretchLine = stretchLine ? 1.0 : 0.0;