copyWith method
StoredRowState
copyWith({
- String? accountKey,
- String? tableId,
- String? rowKey,
- String? phase,
- Value<
String?> actionId = const Value.absent(), - int? attemptCount,
- Value<
DateTime?> nextRetryAt = const Value.absent(), - Value<
String?> errorCode = const Value.absent(), - Value<
String?> errorMessage = const Value.absent(), - Value<
String?> lastServerSeq = const Value.absent(), - Value<
String?> pendingValuesJson = const Value.absent(), - bool? tombstone,
- DateTime? updatedAt,
Implementation
StoredRowState copyWith({
String? accountKey,
String? tableId,
String? rowKey,
String? phase,
Value<String?> actionId = const Value.absent(),
int? attemptCount,
Value<DateTime?> nextRetryAt = const Value.absent(),
Value<String?> errorCode = const Value.absent(),
Value<String?> errorMessage = const Value.absent(),
Value<String?> lastServerSeq = const Value.absent(),
Value<String?> pendingValuesJson = const Value.absent(),
bool? tombstone,
DateTime? updatedAt,
}) => StoredRowState(
accountKey: accountKey ?? this.accountKey,
tableId: tableId ?? this.tableId,
rowKey: rowKey ?? this.rowKey,
phase: phase ?? this.phase,
actionId: actionId.present ? actionId.value : this.actionId,
attemptCount: attemptCount ?? this.attemptCount,
nextRetryAt: nextRetryAt.present ? nextRetryAt.value : this.nextRetryAt,
errorCode: errorCode.present ? errorCode.value : this.errorCode,
errorMessage: errorMessage.present ? errorMessage.value : this.errorMessage,
lastServerSeq: lastServerSeq.present
? lastServerSeq.value
: this.lastServerSeq,
pendingValuesJson: pendingValuesJson.present
? pendingValuesJson.value
: this.pendingValuesJson,
tombstone: tombstone ?? this.tombstone,
updatedAt: updatedAt ?? this.updatedAt,
);