ImChart constructor
const
ImChart({
- Key? key,
- TradingChartController? controller,
- List<
Candle> ? candles, - Stream<
Tick> ? liveTickStream, - String symbol = 'NIFTY 50',
- String exchange = 'NSE',
- String brandName = 'Im Charts',
- Timeframe timeframe = Timeframe.fiveMinutes,
- CandleStyle candleStyle = CandleStyle.candles,
- ChartTheme? theme,
- List<
Indicator> ? indicators, - List<
ChartOrder> ? orders, - List<
ChartPosition> ? positions, - bool showToolbar = false,
- bool showHeader = true,
- bool showDrawingToolbar = false,
- bool showVolume = true,
- bool showVolumeProfile = false,
- bool showSMC = false,
- bool showWatermark = true,
- bool showCountdownTimer = true,
- bool enableChartTrading = true,
- bool enableContextMenu = true,
- ChartLayoutMode layoutMode = ChartLayoutMode.auto,
- double mobileBreakpoint = 600.0,
- GlobalKey<
State< ? repaintBoundaryKey,StatefulWidget> > - void onOrderPlaced(
- ChartOrder order
- void onOrderModified(
- ChartOrder order
- void onOrderCancelled(
- String orderId
- void onPositionClosed(
- ChartPosition position
Default constructor accommodating both controller-driven and props-driven usage.
Implementation
const ImChart({
super.key,
this.controller,
this.candles,
this.liveTickStream,
this.symbol = 'NIFTY 50',
this.exchange = 'NSE',
this.brandName = 'Im Charts',
this.timeframe = Timeframe.fiveMinutes,
this.candleStyle = CandleStyle.candles,
this.theme,
this.indicators,
this.orders,
this.positions,
this.showToolbar = false,
this.showHeader = true,
this.showDrawingToolbar = false,
this.showVolume = true,
this.showVolumeProfile = false,
this.showSMC = false,
this.showWatermark = true,
this.showCountdownTimer = true,
this.enableChartTrading = true,
this.enableContextMenu = true,
this.layoutMode = ChartLayoutMode.auto,
this.mobileBreakpoint = 600.0,
this.repaintBoundaryKey,
this.onOrderPlaced,
this.onOrderModified,
this.onOrderCancelled,
this.onPositionClosed,
});