GalleryController constructor

GalleryController({
  1. PanelSetting? panelSetting,
  2. HeaderSetting? headerSetting,
  3. 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,
  );
}