GalleryController class

Gallery controller

Inheritance

Constructors

GalleryController()
Gallery controller constructor

Properties

albumVisibility ValueNotifier<bool>
Album visibility notifier
no setter
autoDispose bool
Value will be true if controller can be auto dispose
no setter
fullScreenMode bool
return true if gallery is in full screen mode,
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
panelController PanelController
Gallery view pannel controller
no setter
panelKey GlobalKey<State<StatefulWidget>>
Slidable gallery key
final
panelSetting PanelSetting
Panel setting
no setter
reachedMaximumLimit bool
return true if selected media reached to maximum selection limit
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setting GallerySetting
Gallery setting
no setter
singleSelection bool
return true is gallery is in single selection mode
no setter
value GalleryValue
The current value stored in this notifier.
getter/setter pairinherited-getteroverride-setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearSelection() → void
Clear selected entities
completeTask(BuildContext context, {List<DrishyaEntity>? items}) List<DrishyaEntity>
Complete selection process
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
editEntity(BuildContext context, DrishyaEntity entity) Future<DrishyaEntity?>
Edit provided entity
init({GallerySetting? setting}) → void
Initialize controller setting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onGalleryFieldPressed(BuildContext context, {void onChanged(DrishyaEntity entity, bool removed)?, GallerySetting? setting, CustomRouteSetting? routeSetting, bool disposeOnFinish = false}) Future<List<DrishyaEntity>>
Open gallery using GalleryViewField
openCamera(BuildContext context) Future<DrishyaEntity?>
Open camera from GalleryView
pick(BuildContext context, {GallerySetting? setting, CustomRouteSetting? routeSetting}) Future<List<DrishyaEntity>>
Pick assets
recentEntities({RequestType? type, int count = 20}) Future<List<DrishyaEntity>>
Fetch recent entities
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
select(BuildContext context, DrishyaEntity entity, {bool edited = false}) → void
Selecting and unselecting entities
setAlbumVisibility({required bool visible}) → void
Update album visibility
toogleMultiSelection() → void
Toogle force multi selection button
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited