copyWith method

Album copyWith({
  1. String? name,
  2. String? identifier,
  3. int? assetCount,
  4. int? assetSelected,
  5. List<AlbumItem>? items,
})

Implementation

Album copyWith(
    {String? name,
    String? identifier,
    int? assetCount,
    int? assetSelected,
    List<AlbumItem>? items,}) {
  return Album(
    name ?? this.name,
    identifier ?? this.identifier,
    assetCount ?? this.assetCount,
    assetSelected: assetSelected ?? this.assetSelected,
    items: items ?? this.items,
  );
}