copyWith method

OrderBlockZone copyWith({
  1. int? endIndex,
  2. bool? isMitigated,
})

Implementation

OrderBlockZone copyWith({
  int? endIndex,
  bool? isMitigated,
}) {
  return OrderBlockZone(
    candleIndex: candleIndex,
    endIndex: endIndex ?? this.endIndex,
    topPrice: topPrice,
    bottomPrice: bottomPrice,
    isBullish: isBullish,
    isMitigated: isMitigated ?? this.isMitigated,
  );
}