TradingChart constructor
const
TradingChart({
- Key? key,
- required TradingChartController controller,
- bool enableChartTrading = true,
- bool enableContextMenu = true,
- bool showWatermark = true,
- bool showCountdownTimer = true,
- ChartLayoutMode layoutMode = ChartLayoutMode.auto,
- double mobileBreakpoint = 600.0,
- String? brandName,
- GlobalKey<
State< ? repaintBoundaryKey,StatefulWidget> > - Widget orderMenuBuilder(
- BuildContext context,
- double price,
- TradingChartController controller,
- VoidCallback closeMenu,
- Widget contextMenuBuilder(
- BuildContext context,
- Offset position,
- double price,
- TradingChartController controller,
- VoidCallback closeMenu,
- void onContextMenuAction()?,
- void onOrderPlaced(
- ChartOrder order
- void onOrderModified(
- ChartOrder order
- void onOrderCancelled(
- String orderId
- void onPositionClosed(
- ChartPosition position
Implementation
const TradingChart({
super.key,
required this.controller,
this.enableChartTrading = true,
this.enableContextMenu = true,
this.showWatermark = true,
this.showCountdownTimer = true,
this.layoutMode = ChartLayoutMode.auto,
this.mobileBreakpoint = 600.0,
this.brandName,
this.repaintBoundaryKey,
this.orderMenuBuilder,
this.contextMenuBuilder,
this.onContextMenuAction,
this.onOrderPlaced,
this.onOrderModified,
this.onOrderCancelled,
this.onPositionClosed,
});