InteractiveChart constructor

const InteractiveChart({
  1. Key? key,
  2. required List<CandleData> candles,
  3. int initialVisibleCandleCount = 90,
  4. ChartStyle? style,
  5. TimeLabelGetter? timeLabel,
  6. PriceLabelGetter? priceLabel,
  7. OverlayInfoGetter? overlayInfo,
  8. ValueChanged<CandleData>? onTap,
  9. ValueChanged<double>? onCandleResize,
})

Implementation

const InteractiveChart({
  Key? key,
  required this.candles,
  this.initialVisibleCandleCount = 90,
  ChartStyle? style,
  this.timeLabel,
  this.priceLabel,
  this.overlayInfo,
  this.onTap,
  this.onCandleResize,
})  : this.style = style ?? const ChartStyle(),
      assert(candles.length >= 3,
          "InteractiveChart requires 3 or more CandleData"),
      assert(initialVisibleCandleCount >= 3,
          "initialVisibleCandleCount must be more 3 or more"),
      super(key: key);