LineChartStyle constructor
const
LineChartStyle({
- Color lineColor = Colors.blue,
- Color gridColor = Colors.grey,
- Color pointColor = Colors.blue,
- Color backgroundColor = Colors.white,
- TextStyle? labelStyle,
- double strokeWidth = 2.0,
- double pointRadius = 4.0,
- Duration animationDuration = const Duration(milliseconds: 1500),
- 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
});