MacdChart constructor
const
MacdChart({
- Key? key,
- Widget? child,
- double paddingTop = 0,
- Color upperColor = Colors.red,
- Color fairColor = Colors.black45,
- Color lowerColor = Colors.green,
- double strokeWidth = 1,
- Color gridLineColor = Colors.black12,
- double gridLineWidth = 0.5,
- int gridHorizontalGrids = 3,
- int gridVerticalGrids = 3,
- PaintingStyle upperStyle = PaintingStyle.fill,
- PaintingStyle fairStyle = PaintingStyle.fill,
- PaintingStyle lowerStyle = PaintingStyle.fill,
- double difAndDeaLineWidth = 0.5,
- Color difLineColor = Colors.yellow,
- Color deaLineColor = Colors.blue,
- Color crossLineColor = Colors.red,
- double crossLineWidth = 0.5,
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
- bool showText = true,
Implementation
const MacdChart({
super.key,
super.child,
this.paddingTop = 0,
this.upperColor = Colors.red,
this.fairColor = Colors.black45,
this.lowerColor = Colors.green,
this.strokeWidth = 1,
this.gridLineColor = Colors.black12,
this.gridLineWidth = 0.5,
this.gridHorizontalGrids = 3,
this.gridVerticalGrids = 3,
this.upperStyle = PaintingStyle.fill,
this.fairStyle = PaintingStyle.fill,
this.lowerStyle = PaintingStyle.fill,
this.difAndDeaLineWidth = 0.5,
this.difLineColor = Colors.yellow,
this.deaLineColor = Colors.blue,
this.crossLineColor = Colors.red,
this.crossLineWidth = 0.5,
this.textStyle = const TextStyle(color: Colors.black, fontSize: 8),
this.showText = true,
});