KChartWidget constructor

KChartWidget(
  1. List<KLineEntity>? datas,
  2. KChartStyle chartStyle,
  3. KChartColors chartColors, {
  4. required WidgetDetailBuilder detailBuilder,
  5. required bool isTrendLine,
  6. double xFrontPadding = 100,
  7. List<MainIndicator> mainIndicators = const [],
  8. List<SecondaryIndicator> secondaryIndicators = const [],
  9. bool volHidden = false,
  10. bool isLine = false,
  11. bool isTapShowInfoDialog = false,
  12. bool hideGrid = false,
  13. bool showNowPrice = true,
  14. bool showInfoDialog = true,
  15. bool materialInfoDialog = true,
  16. List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY,
  17. dynamic onLoadMore(
    1. bool
    )?,
  18. int fixedLength = 2,
  19. int flingTime = 600,
  20. double flingRatio = 0.5,
  21. Curve flingCurve = Curves.decelerate,
  22. dynamic isOnDrag(
    1. bool
    )?,
  23. VerticalTextAlignment verticalTextAlignment = VerticalTextAlignment.right,
  24. double mBaseHeight = 360,
  25. 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,
});