copyWith method
SyncError
copyWith(
{ - String? id,
- String? message,
- String? stackTrace,
- Map<String, dynamic>? metadata,
- DateTime? timestamp,
- String? category,
- String? entityType,
- String? entityId,
- 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,
);
}