copyWithNull method
CloudSyncable
copyWithNull({
- bool clearId = false,
- bool clearCreatedAt = false,
- bool clearUpdatedAt = false,
- bool clearLocalTimeSyncedAt = false,
- bool clearServerTimeSyncedAt = false,
- bool clearDeletedAt = false,
- bool clearLocalFilePath = false,
- bool clearRemoteFilePath = false,
- bool clearFileSyncedAt = false,
- bool clearTimeOffset = false,
Creates a copy of this object with the specified fields set to null.
Implementation
CloudSyncable copyWithNull({
bool clearId = false,
bool clearCreatedAt = false,
bool clearUpdatedAt = false,
bool clearLocalTimeSyncedAt = false,
bool clearServerTimeSyncedAt = false,
bool clearDeletedAt = false,
bool clearLocalFilePath = false,
bool clearRemoteFilePath = false,
bool clearFileSyncedAt = false,
bool clearTimeOffset = false,
}) {
return CloudSyncable(
id: clearId ? null : id,
createdAt: clearCreatedAt ? null : createdAt,
updatedAt: clearUpdatedAt ? null : updatedAt,
localTimeSyncedAt: clearLocalTimeSyncedAt ? null : localTimeSyncedAt,
serverTimeSyncedAt: clearServerTimeSyncedAt ? null : serverTimeSyncedAt,
deletedAt: clearDeletedAt ? null : deletedAt,
localFilePath: clearLocalFilePath ? null : localFilePath,
remoteFilePath: clearRemoteFilePath ? null : remoteFilePath,
fileSyncedAt: clearFileSyncedAt ? null : fileSyncedAt,
timeOffset: clearTimeOffset ? null : timeOffset,
);
}