Sparkline constructor

const Sparkline(
  1. Iterable<double> data, {
  2. double max = 1.0,
  3. ProgressDirection direction = ProgressDirection.leftToRight,
  4. ProgressBarType barType = ProgressBarType.braille,
  5. ProgressColors colorBuilder(
    1. int cellIndex,
    2. double v0, [
    3. double? v1,
    4. double? v2,
    5. double? v3,
    ])?,
  6. Style style = Style.empty,
})

Creates a Sparkline.

Implementation

const Sparkline(
  this.data, {
  this.max = 1.0,
  this.direction = ProgressDirection.leftToRight,
  this.barType = ProgressBarType.braille,
  this.colorBuilder,
  this.style = Style.empty,
});