LineChartStyle constructor

const LineChartStyle({
  1. Color lineColor = Colors.blue,
  2. Color gridColor = Colors.grey,
  3. Color pointColor = Colors.blue,
  4. Color backgroundColor = Colors.white,
  5. TextStyle? labelStyle,
  6. double strokeWidth = 2.0,
  7. double pointRadius = 4.0,
  8. Duration animationDuration = const Duration(milliseconds: 1500),
  9. Curve animationCurve = Curves.easeInOut,
})

Implementation

const LineChartStyle({
  this.lineColor = Colors.blue, // Default line color
  this.gridColor = Colors.grey, // Default grid color
  this.pointColor = Colors.blue, // Default point color
  this.backgroundColor = Colors.white, // Default background color
  this.labelStyle, // Custom label style
  this.strokeWidth = 2.0, // Default stroke width
  this.pointRadius = 4.0, // Default point radius
  this.animationDuration =
      const Duration(milliseconds: 1500), // Default animation duration
  this.animationCurve = Curves.easeInOut, // Default animation curve
});