@@ -3,21 +3,29 @@ import 'package:flutter/material.dart';
33class GraphConfiguration {
44 final int graphDivisions;
55 final int curveDivisions;
6- final Color graphAxisColor;
7- final Color graphCurveColor;
6+ final Color axisColor;
7+ final Color curveLineColor;
8+ final Color curveOutlineColor;
89 final Color graphMarkerColor;
9- final double graphAxisWidth;
10- final double graphCurveWidth;
11- final double graphMarkerSize;
10+ final double axisWidth;
11+ final double curveLineWidth;
12+ final double pointerSize;
13+ final bool showCurveOutline;
1214
1315 const GraphConfiguration ({
1416 this .graphDivisions = 10 ,
1517 this .curveDivisions = 1000 ,
16- required this .graphAxisColor ,
17- required this .graphCurveColor ,
18+ required this .axisColor ,
19+ required this .curveLineColor ,
1820 required this .graphMarkerColor,
19- required this .graphAxisWidth,
20- required this .graphCurveWidth,
21- required this .graphMarkerSize,
22- });
21+ required this .axisWidth,
22+ required this .curveLineWidth,
23+ required this .pointerSize,
24+ required this .curveOutlineColor,
25+ this .showCurveOutline = false ,
26+ }) : assert (pointerSize > 0 , 'pointerSize must be greater than 0' ),
27+ assert (axisWidth > 0 , 'axisWidth must be greater than 0' ),
28+ assert (curveLineWidth > 0 , 'curveLineWidth must be greater than 0' ),
29+ assert (curveDivisions > 0 , 'curveDivisions must be greater than 0' ),
30+ assert (graphDivisions >= 0 , 'graphDivisions must be not negative' );
2331}
0 commit comments