copyWith method
SyncLog
copyWith(
{ - String? syncId,
- String? entityType,
- String? entityId,
- SyncOperation? operation,
- String? dataJson,
- bool? isFileToUpload,
- bool? isSynced,
- int? retryCount,
- String? lastError,
- DateTime? createdAt,
- DateTime? lastAttemptAt,
- DateTime? syncedAt,
})
Implementation
SyncLog copyWith({
String? syncId,
String? entityType,
String? entityId,
SyncOperation? operation,
String? dataJson,
bool? isFileToUpload,
bool? isSynced,
int? retryCount,
String? lastError,
DateTime? createdAt,
DateTime? lastAttemptAt,
DateTime? syncedAt,
}) {
return SyncLog(
syncId: syncId ?? this.syncId,
entityType: entityType ?? this.entityType,
entityId: entityId ?? this.entityId,
operation: operation ?? this.operation,
dataJson: dataJson ?? this.dataJson,
isFileToUpload: isFileToUpload ?? this.isFileToUpload,
isSynced: isSynced ?? this.isSynced,
retryCount: retryCount ?? this.retryCount,
lastError: lastError ?? this.lastError,
createdAt: createdAt ?? this.createdAt,
lastAttemptAt: lastAttemptAt ?? this.lastAttemptAt,
syncedAt: syncedAt ?? this.syncedAt,
);
}