KChartWidget constructor

KChartWidget({
  1. required List<KLineEntity>? data,
  2. required ChartStyle style,
  3. required bool isTrendLine,
  4. double xFrontPadding = 100,
  5. MainState mainState = MainState.MA,
  6. SecondaryState secondaryState = SecondaryState.MACD,
  7. bool volHidden = false,
  8. bool isLine = false,
  9. bool isTapShowInfoDialog = false,
  10. bool hideGrid = false,
  11. bool showNowPrice = true,
  12. bool showInfoDialog = true,
  13. Map<String, ChartTranslations> translations = kChartTranslations,
  14. List<String> timeFormat = TimeFormat.YEAR_MONTH_DAY,
  15. dynamic onLoadMore(
    1. bool
    )?,
  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
    )?,
  21. String dataFormat(
    1. double value
    )?,
})

Implementation

KChartWidget({
  required this.data,
  required this.style,
  required this.isTrendLine,
  this.xFrontPadding = 100,
  this.mainState = MainState.MA,
  this.secondaryState = SecondaryState.MACD,
  this.volHidden = false,
  this.isLine = false,
  this.isTapShowInfoDialog = false,
  this.hideGrid = false,
  this.showNowPrice = true,
  this.showInfoDialog = true,
  this.translations = kChartTranslations,
  this.timeFormat = TimeFormat.YEAR_MONTH_DAY,
  this.onLoadMore,
  this.maDayList = const [5, 10, 20],
  this.flingTime = 600,
  this.flingRatio = 0.5,
  this.flingCurve = Curves.decelerate,
  this.isOnDrag,
  this.dataFormat
}) {
  DEFAULT_FONT_FAMILY = style.fontFamily;
}