TradingScreen constructor
const
TradingScreen({
- Key? key,
- String initialSymbol = 'NIFTY 50',
- String initialExchange = 'NSE',
- ChartDataSource? dataSource,
- List<
Candle> ? initialCandles, - Timeframe initialTimeframe = Timeframe.fiveMinutes,
- CandleStyle initialCandleStyle = CandleStyle.candles,
- ChartTheme? initialTheme,
- TradingChartController? controller,
- List<
ChartOrder> ? initialOrders, - List<
ChartPosition> ? initialPositions, - bool initialShowVolumeProfile = false,
- bool showToolbar = true,
- bool showHeader = true,
- bool showDrawingToolbar = true,
- bool showWatermark = true,
- bool showCountdownTimer = true,
- String? brandName = 'Im Charts',
- bool enableChartTrading = true,
- Widget orderMenuBuilder(
- BuildContext context,
- double price,
- TradingChartController controller,
- VoidCallback closeMenu,
- void onOrderPlaced(
- ChartOrder order
- void onOrderModified(
- ChartOrder order
- void onOrderCancelled(
- String orderId
- void onPositionClosed(
- ChartPosition position
Implementation
const TradingScreen({
super.key,
this.initialSymbol = 'NIFTY 50',
this.initialExchange = 'NSE',
this.dataSource,
this.initialCandles,
this.initialTimeframe = Timeframe.fiveMinutes,
this.initialCandleStyle = CandleStyle.candles,
this.initialTheme,
this.controller,
this.initialOrders,
this.initialPositions,
this.initialShowVolumeProfile = false,
this.showToolbar = true,
this.showHeader = true,
this.showDrawingToolbar = true,
this.showWatermark = true,
this.showCountdownTimer = true,
this.brandName = 'Im Charts',
this.enableChartTrading = true,
this.orderMenuBuilder,
this.onOrderPlaced,
this.onOrderModified,
this.onOrderCancelled,
this.onPositionClosed,
});