TradingChart constructor

const TradingChart({
  1. Key? key,
  2. required TradingChartController controller,
  3. bool enableChartTrading = true,
  4. bool showWatermark = true,
  5. bool showCountdownTimer = true,
  6. String? brandName,
  7. GlobalKey<State<StatefulWidget>>? repaintBoundaryKey,
  8. Widget orderMenuBuilder(
    1. BuildContext context,
    2. double price,
    3. TradingChartController controller,
    4. VoidCallback closeMenu,
    )?,
  9. void onOrderPlaced(
    1. ChartOrder order
    )?,
  10. void onOrderModified(
    1. ChartOrder order
    )?,
  11. void onOrderCancelled(
    1. String orderId
    )?,
  12. void onPositionClosed(
    1. ChartPosition position
    )?,
})

Implementation

const TradingChart({
  super.key,
  required this.controller,
  this.enableChartTrading = true,
  this.showWatermark = true,
  this.showCountdownTimer = true,
  this.brandName,
  this.repaintBoundaryKey,
  this.orderMenuBuilder,
  this.onOrderPlaced,
  this.onOrderModified,
  this.onOrderCancelled,
  this.onPositionClosed,
});