KChartWidget constructor
KChartWidget(
- List<
KLineEntity> ? datas, - KChartStyle chartStyle,
- KChartColors chartColors, {
- required WidgetDetailBuilder detailBuilder,
- required bool isTrendLine,
- double xFrontPadding = 100,
- List<
MainIndicator> mainIndicators = const [], - List<
SecondaryIndicator> secondaryIndicators = const [], - bool volHidden = false,
- bool isLine = false,
- bool isTapShowInfoDialog = false,
- bool hideGrid = false,
- bool showNowPrice = true,
- bool showInfoDialog = true,
- bool materialInfoDialog = true,
- List<
String> timeFormat = TimeFormat.YEAR_MONTH_DAY, - dynamic onLoadMore()?,
- int fixedLength = 2,
- int flingTime = 600,
- double flingRatio = 0.5,
- Curve flingCurve = Curves.decelerate,
- dynamic isOnDrag()?,
- VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.right,
- double mBaseHeight = 360,
- double? mSecondaryHeight,
Implementation
KChartWidget(
this.datas,
this.chartStyle,
this.chartColors, {
required this.detailBuilder,
required this.isTrendLine,
this.xFrontPadding = 100,
this.mainIndicators = const [],
this.secondaryIndicators = const [],
// this.onSecondaryTap,
this.volHidden = false,
this.isLine = false,
this.isTapShowInfoDialog = false,
this.hideGrid = false,
this.showNowPrice = true,
this.showInfoDialog = true,
this.materialInfoDialog = true,
this.timeFormat = TimeFormat.YEAR_MONTH_DAY,
this.onLoadMore,
this.fixedLength = 2,
this.flingTime = 600,
this.flingRatio = 0.5,
this.flingCurve = Curves.decelerate,
this.isOnDrag,
this.verticalTextAlignment = VerticalTextAlignment.right,
this.mBaseHeight = 360,
this.mSecondaryHeight,
});