copyWith method

PendingOp copyWith({
  1. String? opId,
  2. String? scopeName,
  3. String? scopeKeys,
  4. String? type,
  5. String? id,
  6. Value<String?> payload = const Value.absent(),
  7. String? updatedAt,
})

Implementation

PendingOp copyWith({
  String? opId,
  String? scopeName,
  String? scopeKeys,
  String? type,
  String? id,
  Value<String?> payload = const Value.absent(),
  String? updatedAt,
}) => PendingOp(
  opId: opId ?? this.opId,
  scopeName: scopeName ?? this.scopeName,
  scopeKeys: scopeKeys ?? this.scopeKeys,
  type: type ?? this.type,
  id: id ?? this.id,
  payload: payload.present ? payload.value : this.payload,
  updatedAt: updatedAt ?? this.updatedAt,
);