ChartBar constructor
const
ChartBar({
- Key? key,
- required Size size,
- required List<
ChartBean> chartBeans, - Duration duration = const Duration(milliseconds: 800),
- required Color rectColor,
- Color? backgroundColor,
- bool isShowX = false,
- bool isAnimation = true,
- bool isReverse = false,
- double fontSize = 12,
- Color? fontColor,
- Color? rectShadowColor,
- bool isCanTouch = false,
- bool isShowTouchShadow = true,
- bool isShowTouchValue = false,
- double rectRadius = 0,
- double rectRadiusTopLeft = 0,
- double rectRadiusTopRight = 0,
- double rectRadiusBottomLeft = 0,
- double rectRadiusBottomRight = 0,
Implementation
const ChartBar({
Key? key,
required this.size,
required this.chartBeans,
this.duration = const Duration(milliseconds: 800),
required this.rectColor,
this.backgroundColor,
this.isShowX = false,
this.isAnimation = true,
this.isReverse = false,
this.fontSize = 12,
this.fontColor,
this.rectShadowColor,
this.isCanTouch = false,
this.isShowTouchShadow = true,
this.isShowTouchValue = false,
this.rectRadius = 0,
this.rectRadiusTopLeft = 0,
this.rectRadiusTopRight = 0,
this.rectRadiusBottomLeft = 0,
this.rectRadiusBottomRight = 0,
}) : super(key: key);