copyWith method

GalleryValue copyWith({
  1. List<GalleryAsset>? selectedAssets,
  2. bool? isAlbumVisible,
})

Implementation

GalleryValue copyWith({
  List<GalleryAsset>? selectedAssets,
  bool? isAlbumVisible,
}) {
  return GalleryValue(
    selectedAssets: selectedAssets ?? this.selectedAssets,
    isAlbumVisible: isAlbumVisible ?? this.isAlbumVisible,
  );
}