copyWith method

SyncError copyWith({
  1. String? id,
  2. String? message,
  3. String? stackTrace,
  4. Map<String, dynamic>? metadata,
  5. DateTime? timestamp,
  6. String? category,
  7. String? entityType,
  8. String? entityId,
  9. bool? isSent,
})

Implementation

SyncError copyWith({
  String? id,
  String? message,
  String? stackTrace,
  Map<String, dynamic>? metadata,
  DateTime? timestamp,
  String? category,
  String? entityType,
  String? entityId,
  bool? isSent,
}) {
  return SyncError(
    id: id ?? this.id,
    message: message ?? this.message,
    stackTrace: stackTrace ?? this.stackTrace,
    metadata: metadata ?? this.metadata,
    timestamp: timestamp ?? this.timestamp,
    category: category ?? this.category,
    entityType: entityType ?? this.entityType,
    entityId: entityId ?? this.entityId,
    isSent: isSent ?? this.isSent,
  );
}