GallerySetting constructor

const GallerySetting({
  1. RequestType requestType = RequestType.all,
  2. int maximum = 20,
  3. bool enableCamera = true,
  4. int? crossAxisCount,
  5. bool backAndUnselect()?,
  6. dynamic onItemClick(
    1. MediaEntity,
    2. List<MediaEntity>
    )?,
  7. VoidCallback? onReachedMaximumLimit,
  8. Alignment selectionCountAlignment = Alignment.center,
  9. Widget? actionButton = const SizedBox(),
  10. TextStyle? selectionCountTextStyle,
  11. Color? selectionCountBackgroundColor,
  12. double? selectionCountBackgroundSize,
  13. Color? selectionCountRingColor,
  14. double? selectionCountRingSize,
  15. EdgeInsets? selectionCountMargin,
  16. Widget selectionCountBuilder(
    1. int index
    )?,
  17. SelectedStyle? selectedStyle = SelectedStyle.border,
  18. EdgeInsets? padding,
  19. double? space,
  20. BorderRadius? itemBorderRadius,
  21. Widget albumBackground = const ColoredBox(color: Colors.black),
  22. Color albumColor = Colors.black,
  23. int? albumImageSize,
  24. BorderRadius? albumBorderRadius,
  25. TextStyle? albumTitleStyle,
  26. TextStyle? albumSubTitleStyle,
  27. Widget? cameraItemWidget,
  28. FilterOptionGroup? filterOptionGroup,
})

Implementation

const GallerySetting({
  this.requestType = RequestType.all,
  this.maximum = 20,
  this.enableCamera = true,
  this.crossAxisCount,
  this.backAndUnselect,
  this.onItemClick,
  this.onReachedMaximumLimit,
  this.selectionCountAlignment = Alignment.center,
  this.actionButton = const SizedBox(),
  this.selectionCountTextStyle,
  this.selectionCountBackgroundColor,
  this.selectionCountBackgroundSize,
  this.selectionCountRingColor,
  this.selectionCountRingSize,
  this.selectionCountMargin,
  this.selectionCountBuilder,
  this.selectedStyle = SelectedStyle.border,
  this.padding,
  this.space,
  this.itemBorderRadius,
  this.albumBackground = const ColoredBox(color: Colors.black),
  this.albumColor = Colors.black,
  this.albumImageSize,
  this.albumBorderRadius,
  this.albumTitleStyle,
  this.albumSubTitleStyle,
  this.cameraItemWidget,
  this.filterOptionGroup,
});