copyWith method

ImageModel copyWith({
  1. String? title,
  2. String? url,
  3. String? categoryId,
  4. String? thumbs,
  5. String? memo,
  6. String? createTime,
})

Implementation

ImageModel copyWith({
  String? title,
  String? url,
  String? categoryId,
  String? thumbs,
  String? memo,
  String? createTime,
}) {
  return ImageModel(
    title: title ?? this.title,
    url: url ?? this.url,
    categoryId: categoryId ?? this.categoryId,
    thumbs: thumbs ?? this.thumbs,
    memo: memo ?? this.memo,
    createTime: createTime ?? this.createTime,
  );
}