copyWith method

AlbumValue copyWith({
  1. AssetPathEntity? path,
  2. AssetEntity? firstAsset,
  3. List<AssetEntity>? assets,
  4. int? assetCount,
  5. String? error,
  6. FetchStatus? fetchStatus,
})

Implementation

AlbumValue copyWith({
  AssetPathEntity? path,
  AssetEntity? firstAsset,
  List<AssetEntity>? assets,
  int? assetCount,
  String? error,
  FetchStatus? fetchStatus,
}) {
  return AlbumValue(
    path: path ?? this.path,
    firstAsset: firstAsset ?? this.firstAsset,
    assets: assets ?? this.assets,
    assetCount: assetCount ?? this.assetCount,
    error: error ?? this.error,
    fetchStatus: fetchStatus ?? this.fetchStatus,
  );
}