copyWith method

StoredRowState copyWith({
  1. String? accountKey,
  2. String? tableId,
  3. String? rowKey,
  4. String? phase,
  5. Value<String?> actionId = const Value.absent(),
  6. int? attemptCount,
  7. Value<DateTime?> nextRetryAt = const Value.absent(),
  8. Value<String?> errorCode = const Value.absent(),
  9. Value<String?> errorMessage = const Value.absent(),
  10. Value<String?> lastServerSeq = const Value.absent(),
  11. Value<String?> pendingValuesJson = const Value.absent(),
  12. bool? tombstone,
  13. 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,
);