copyWith method

StoredAction copyWith({
  1. String? id,
  2. String? accountKey,
  3. String? actionKey,
  4. int? version,
  5. String? kind,
  6. String? payloadJson,
  7. String? status,
  8. Value<String?> orderingKey = const Value.absent(),
  9. Value<String?> rowTableId = const Value.absent(),
  10. Value<String?> rowKey = const Value.absent(),
  11. int? queuePosition,
  12. int? attemptCount,
  13. Value<DateTime?> nextAttemptAt = const Value.absent(),
  14. Value<String?> lastError = const Value.absent(),
  15. DateTime? createdAt,
  16. DateTime? updatedAt,
})

Implementation

StoredAction copyWith({
  String? id,
  String? accountKey,
  String? actionKey,
  int? version,
  String? kind,
  String? payloadJson,
  String? status,
  Value<String?> orderingKey = const Value.absent(),
  Value<String?> rowTableId = const Value.absent(),
  Value<String?> rowKey = const Value.absent(),
  int? queuePosition,
  int? attemptCount,
  Value<DateTime?> nextAttemptAt = const Value.absent(),
  Value<String?> lastError = const Value.absent(),
  DateTime? createdAt,
  DateTime? updatedAt,
}) => StoredAction(
  id: id ?? this.id,
  accountKey: accountKey ?? this.accountKey,
  actionKey: actionKey ?? this.actionKey,
  version: version ?? this.version,
  kind: kind ?? this.kind,
  payloadJson: payloadJson ?? this.payloadJson,
  status: status ?? this.status,
  orderingKey: orderingKey.present ? orderingKey.value : this.orderingKey,
  rowTableId: rowTableId.present ? rowTableId.value : this.rowTableId,
  rowKey: rowKey.present ? rowKey.value : this.rowKey,
  queuePosition: queuePosition ?? this.queuePosition,
  attemptCount: attemptCount ?? this.attemptCount,
  nextAttemptAt: nextAttemptAt.present
      ? nextAttemptAt.value
      : this.nextAttemptAt,
  lastError: lastError.present ? lastError.value : this.lastError,
  createdAt: createdAt ?? this.createdAt,
  updatedAt: updatedAt ?? this.updatedAt,
);