KChartWidget constructor
KChartWidget(
- List<
KLineEntity> ? datas, - ChartStyle chartStyle,
- ChartColors chartColors, {
- MainState mainState = MainState.MA,
- SecondaryState secondaryState = SecondaryState.MACD,
- dynamic onSecondaryTap()?,
- bool volHidden = false,
- bool isLine = false,
- bool hideGrid = false,
- bool isChinese = false,
- Map<
String, ChartTranslations> translations = kChartTranslations, - List<
String> timeFormat = TimeFormat.YEAR_MONTH_DAY_SHORT, - dynamic onLoadMore()?,
- List<
Color> ? bgColor, - int fixedLength = 2,
- List<
int> maDayList = const [5, 10, 20], - int flingTime = 600,
- double flingRatio = 0.5,
- Curve flingCurve = Curves.decelerate,
- dynamic isOnDrag()?,
Implementation
KChartWidget(
this.datas,
this.chartStyle,
this.chartColors, {
this.mainState = MainState.MA,
this.secondaryState = SecondaryState.MACD,
this.onSecondaryTap,
this.volHidden = false,
this.isLine = false,
this.hideGrid = false,
this.isChinese = false,
this.translations = kChartTranslations,
this.timeFormat = TimeFormat.YEAR_MONTH_DAY_SHORT,
this.onLoadMore,
this.bgColor,
this.fixedLength = 2,
this.maDayList = const [5, 10, 20],
this.flingTime = 600,
this.flingRatio = 0.5,
this.flingCurve = Curves.decelerate,
this.isOnDrag,
});