GalleryController constructor
GalleryController({
- PanelSetting? panelSetting,
- HeaderSetting? headerSetting,
- GallerySetting? gallerySetting,
Implementation
GalleryController({
PanelSetting? panelSetting,
HeaderSetting? headerSetting,
GallerySetting? gallerySetting,
}) : panelSetting = panelSetting ?? const PanelSetting(),
headerSetting = headerSetting ?? const HeaderSetting(),
setting = gallerySetting ?? const GallerySetting(),
panelController = PanelController(),
albumsNotifier = ValueNotifier(const BaseStateGallery()),
albumNotifier = ValueNotifier(const BaseStateGallery()),
entitiesNotifier = ValueNotifier(const BaseStateGallery()),
_recentEntities = ValueNotifier(const BaseStateGallery()),
albumVisibility = ValueNotifier(false),
super(const GalleryValue()) {
repository = GalleryRepository(
albumsNotifier: albumsNotifier,
albumNotifier: albumNotifier,
entitiesNotifier: entitiesNotifier,
recentEntitiesNotifier: _recentEntities,
);
}