KChartWidget constructor

KChartWidget(
  1. List<KLineEntity>? datas,
  2. ChartStyle chartStyle,
  3. ChartColors chartColors, {
  4. MainState mainState = MainState.MA,
  5. SecondaryState secondaryState = SecondaryState.MACD,
  6. dynamic onSecondaryTap()?,
  7. bool volHidden = false,
  8. bool isLine = false,
  9. bool hideGrid = false,
  10. bool isChinese = false,
  11. Map<String, ChartTranslations> translations = kChartTranslations,
  12. List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY_SHORT,
  13. dynamic onLoadMore(
    1. bool
    )?,
  14. List<Color>? bgColor,
  15. int fixedLength = 2,
  16. List<int> maDayList = const [5, 10, 20],
  17. int flingTime = 600,
  18. double flingRatio = 0.5,
  19. Curve flingCurve = Curves.decelerate,
  20. dynamic isOnDrag(
    1. bool
    )?,
})

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,
});