copyWith method
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,
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,
);