ChartPosition constructor

const ChartPosition({
  1. required String id,
  2. required String symbol,
  3. required PositionSide side,
  4. required double entryPrice,
  5. double quantity = 1.0,
  6. double? takeProfitPrice,
  7. double? stopLossPrice,
  8. required DateTime openedAt,
  9. String? customLabel,
  10. Map<String, dynamic>? metadata,
})

Implementation

const ChartPosition({
  required this.id,
  required this.symbol,
  required this.side,
  required this.entryPrice,
  this.quantity = 1.0,
  this.takeProfitPrice,
  this.stopLossPrice,
  required this.openedAt,
  this.customLabel,
  this.metadata,
});