LineData.scatter constructor

const LineData.scatter({
  1. bool visible = true,
  2. ChartRotation rotation = ChartRotation.d0,
  3. ChartFlip flip = ChartFlip.none,
  4. Offset origin = Offset.zero,
  5. IChartLayout? layout,
  6. bool? crop,
  7. ChartInsets padding = const ChartInsets(),
  8. required List<DataPoint> points,
  9. IDataPointStyle? pointStyle,
})

Creates marker-only x/y data without a connected line or area fill.

Implementation

const LineData.scatter({
  this.visible = true,
  this.rotation = ChartRotation.d0,
  this.flip = ChartFlip.none,
  this.origin = Offset.zero,
  this.layout,
  this.crop,
  this.padding = const ChartInsets(),
  required List<DataPoint> points,
  this.pointStyle,
})  : line = points,
      thickness = const ThicknessData(size: Px(2.0)),
      areaGradient = null,
      areaColor = null,
      areaFillType = null,
      lineType = const ScatterLineData();