LineChart constructor

const LineChart({
  1. Key? key,
  2. required List<ChartPoint> points,
  3. List<String> labels = const [],
  4. Color? color,
  5. bool showArea = true,
  6. bool showDots = true,
  7. bool showGrid = true,
  8. double height = 200,
  9. bool animate = true,
  10. double strokeWidth = 2.5,
})

Implementation

const LineChart({
  super.key,
  required this.points,
  this.labels = const [],
  this.color,
  this.showArea = true,
  this.showDots = true,
  this.showGrid = true,
  this.height = 200,
  this.animate = true,
  this.strokeWidth = 2.5,
});