InteractiveChart constructor
const
InteractiveChart({
- Key? key,
- required List<
CandleData> candles, - int initialVisibleCandleCount = 90,
- ChartStyle? style,
- TimeLabelGetter? timeLabel,
- PriceLabelGetter? priceLabel,
- OverlayInfoGetter? overlayInfo,
- ValueChanged<
CandleData> ? onTap, - 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);