copyWith method

ActionStep copyWith({
  1. ActionStepStatus? status,
  2. String? error,
  3. DateTime? completedAt,
})

Implementation

ActionStep copyWith({
  ActionStepStatus? status,
  String? error,
  DateTime? completedAt,
}) {
  return ActionStep(
    id: id,
    description: description,
    toolName: toolName,
    arguments: arguments,
    status: status ?? this.status,
    error: error ?? this.error,
    startedAt: startedAt,
    completedAt: completedAt ?? this.completedAt,
  );
}