TradingScreen constructor

const TradingScreen({
  1. Key? key,
  2. String initialSymbol = 'NIFTY 50',
  3. String initialExchange = 'NSE',
  4. ChartDataSource? dataSource,
  5. List<Candle>? initialCandles,
  6. Timeframe initialTimeframe = Timeframe.fiveMinutes,
  7. CandleStyle initialCandleStyle = CandleStyle.candles,
  8. ChartTheme? initialTheme,
  9. TradingChartController? controller,
  10. List<ChartOrder>? initialOrders,
  11. List<ChartPosition>? initialPositions,
  12. bool initialShowVolumeProfile = false,
  13. bool showToolbar = true,
  14. bool showHeader = true,
  15. bool showDrawingToolbar = true,
  16. bool showWatermark = true,
  17. bool showCountdownTimer = true,
  18. String? brandName = 'Im Charts',
  19. bool enableChartTrading = true,
  20. Widget orderMenuBuilder(
    1. BuildContext context,
    2. double price,
    3. TradingChartController controller,
    4. VoidCallback closeMenu,
    )?,
  21. void onOrderPlaced(
    1. ChartOrder order
    )?,
  22. void onOrderModified(
    1. ChartOrder order
    )?,
  23. void onOrderCancelled(
    1. String orderId
    )?,
  24. void onPositionClosed(
    1. 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,
});