KChartWidget constructor

KChartWidget(
  1. List<KLineEntity>? datas,
  2. ChartStyle chartStyle,
  3. ChartColors chartColors, {
  4. required bool isTrendLine,
  5. MainState mainState = MainState.MA,
  6. SecondaryState secondaryState = SecondaryState.MACD,
  7. dynamic onSecondaryTap()?,
  8. bool volHidden = false,
  9. bool isLine = false,
  10. bool isTapShowInfoDialog = false,
  11. bool hideGrid = false,
  12. @Deprecated('Use `translations` instead.') bool isChinese = false,
  13. bool showNowPrice = true,
  14. bool showInfoDialog = true,
  15. Map<String, ChartTranslations> translations = kChartTranslations,
  16. List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY,
  17. dynamic onLoadMore(
    1. bool
    )?,
  18. @Deprecated('Use `chartColors` instead.') List<Color>? bgColor,
  19. int fixedLength = 2,
  20. List<int> maDayList = const [5, 10, 20],
  21. int flingTime = 600,
  22. double flingRatio = 0.5,
  23. Curve flingCurve = Curves.decelerate,
  24. dynamic isOnDrag(
    1. bool
    )?,
  25. VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.left,
  26. double default_scale_x = 1.0,
  27. List<ExtraBuySellSignal>? extraBuySellSignals,
  28. List<ExtraLine>? extraLineList,
  29. List<ExtraTextLabel>? extraTextLabelList,
})

Implementation

KChartWidget(this.datas, this.chartStyle, this.chartColors,
    {required this.isTrendLine,
    this.mainState = MainState.MA,
    this.secondaryState = SecondaryState.MACD,
    this.onSecondaryTap,
    this.volHidden = false,
    this.isLine = false,
    this.isTapShowInfoDialog = false,
    this.hideGrid = false,
    @Deprecated('Use `translations` instead.') this.isChinese = false,
    this.showNowPrice = true,
    this.showInfoDialog = true,
    this.translations = kChartTranslations,
    this.timeFormat = TimeFormat.YEAR_MONTH_DAY,
    this.onLoadMore,
    @Deprecated('Use `chartColors` instead.') this.bgColor,
    this.fixedLength = 2,
    this.maDayList = const [5, 10, 20],
    this.flingTime = 600,
    this.flingRatio = 0.5,
    this.flingCurve = Curves.decelerate,
    this.isOnDrag,
    this.verticalTextAlignment = VerticalTextAlignment.left,
    this.default_scale_x = 1.0,
    this.extraBuySellSignals,
    this.extraLineList,
    this.extraTextLabelList
    });