copyWith method

TaskGalleryPhotoViewModel copyWith({
  1. int? id,
  2. String? objectId,
  3. String? url,
  4. int? taskId,
  5. DateTime? createdAt,
})

Implementation

TaskGalleryPhotoViewModel copyWith(
    {int? id,
    String? objectId,
    String? url,
    int? taskId,
    DateTime? createdAt}) {
  return TaskGalleryPhotoViewModel(
      id: id ?? this.id,
      objectId: objectId ?? this.objectId,
      url: url ?? this.url,
      taskId: taskId ?? this.taskId,
      createdAt: createdAt ?? this.createdAt);
}