copyWith method

ArticlePhoto copyWith({
  1. int? calibreId,
  2. int? id,
  3. String? path,
  4. PhotoSource? source,
})

Implementation

ArticlePhoto copyWith({
  int? calibreId,
  int? id,
  String? path,
  PhotoSource? source,
}) {
  return ArticlePhoto(
    calibreId: calibreId ?? this.calibreId,
    id: id ?? this.id,
    path: path ?? this.path,
    source: source ?? this.source,
  );
}