copyWith method
AlbumValue
copyWith({
- AssetPathEntity? path,
- AssetEntity? firstAsset,
- List<
AssetEntity> ? assets, - int? assetCount,
- String? error,
- 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,
);
}