copyWith method

Sync copyWith({
  1. SyncType? type,
  2. String? parent,
  3. String? target,
  4. SyncStatus? status,
  5. String? message,
  6. DateTime? creationTime,
  7. DateTime? updateTime,
})

Builds a copy of a Sync

  • type: The target type
  • parent: The parent
  • target: The target
  • status: The status of the sync
  • message: An optional sync message
  • creationTime: The shader description
  • updateTime: 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);
}