copyWith method
Builds a copy of a Sync
type
: The target typeparent
: The parenttarget
: The targetstatus
: The status of the syncmessage
: An optional sync messagecreationTime
: The shader descriptionupdateTime
: The last time the target was synced
Implementation
Sync copyWith(
{SyncType? type,
String? parent,
String? target,
SyncStatus? status,
String? message,
DateTime? creationTime,
DateTime? updateTime}) {
return Sync(
type: type ?? this.type,
target: target ?? this.target,
status: status ?? this.status,
message: message ?? this.message,
creationTime: creationTime ?? this.creationTime,
updateTime: updateTime ?? this.updateTime);
}