copyWith method

CommandProjectionEntry copyWith({
  1. String? commandId,
  2. CommandStatus? status,
  3. bool? terminal,
  4. int? generation,
  5. String? reason,
  6. String? terminalReceiptId,
  7. String? lastEventId,
})

Implementation

CommandProjectionEntry copyWith({
  String? commandId,
  CommandStatus? status,
  bool? terminal,
  int? generation,
  String? reason,
  String? terminalReceiptId,
  String? lastEventId,
}) =>
    CommandProjectionEntry(
      commandId: commandId ?? this.commandId,
      status: status ?? this.status,
      terminal: terminal ?? this.terminal,
      generation: generation ?? this.generation,
      reason: reason ?? this.reason,
      terminalReceiptId: terminalReceiptId ?? this.terminalReceiptId,
      lastEventId: lastEventId ?? this.lastEventId,
    );