copyWith method

StoryAlbum copyWith({
  1. int? id,
  2. String? name,
  3. Photo? photoIcon,
  4. Video? videoIcon,
})

Implementation

StoryAlbum copyWith({
  int? id,
  String? name,
  Photo? photoIcon,
  Video? videoIcon,
}) => StoryAlbum(
  id: id ?? this.id,
  name: name ?? this.name,
  photoIcon: photoIcon ?? this.photoIcon,
  videoIcon: videoIcon ?? this.videoIcon,
);