copyWith method

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

Implementation

GallerySetting copyWith({
  SelectedStyle? selectedStyle,
  VoidCallback? onReachedMaximumLimit,
  RequestType? requestType,
  int? maximum,
  bool? enableCamera,
  int? crossAxisCount,
  bool Function()? backAndUnselect,
  Function(MediaEntity, List<MediaEntity>)? onItemClick,
  Widget? actionButton,
  Alignment? selectionCountAlignment,
  TextStyle? selectionCountTextStyle,
  Color? selectionCountBackgroundColor,
  double? selectionCountBackgroundSize,
  Color? selectionCountRingColor,
  double? selectionCountRingSize,
  EdgeInsets? selectionCountMargin,
  Widget Function(int index)? selectionCountBuilder,
  EdgeInsets? padding,
  double? space,
  BorderRadius? itemBorderRadius,
  Widget? albumBackground,
  Color? albumColor,
  int? albumImageSize,
  BorderRadius? albumBorderRadius,
  TextStyle? albumTitleStyle,
  TextStyle? albumSubTitleStyle,
  Widget? cameraItemWidget,
  FilterOptionGroup? filterOptionGroup,
}) {
  return GallerySetting(
    requestType: requestType ?? this.requestType,
    maximum: maximum ?? this.maximum,
    enableCamera: enableCamera ?? this.enableCamera,
    crossAxisCount: crossAxisCount ?? this.crossAxisCount,
    backAndUnselect: backAndUnselect ?? this.backAndUnselect,
    onItemClick: onItemClick ?? this.onItemClick,
    onReachedMaximumLimit:
        onReachedMaximumLimit ?? this.onReachedMaximumLimit,
    selectionCountAlignment:
        selectionCountAlignment ?? this.selectionCountAlignment,
    actionButton: actionButton ?? this.actionButton,
    selectionCountTextStyle:
        selectionCountTextStyle ?? this.selectionCountTextStyle,
    selectionCountBackgroundColor:
        selectionCountBackgroundColor ?? this.selectionCountBackgroundColor,
    selectionCountBackgroundSize:
        selectionCountBackgroundSize ?? this.selectionCountBackgroundSize,
    selectionCountRingColor:
        selectionCountRingColor ?? this.selectionCountRingColor,
    selectionCountRingSize:
        selectionCountRingSize ?? this.selectionCountRingSize,
    selectionCountMargin: selectionCountMargin ?? this.selectionCountMargin,
    selectionCountBuilder:
        selectionCountBuilder ?? this.selectionCountBuilder,
    selectedStyle: selectedStyle ?? this.selectedStyle,
    padding: padding ?? this.padding,
    space: space ?? this.space,
    itemBorderRadius: itemBorderRadius ?? this.itemBorderRadius,
    albumBackground: albumBackground ?? this.albumBackground,
    albumColor: albumColor ?? this.albumColor,
    albumImageSize: albumImageSize ?? this.albumImageSize,
    albumBorderRadius: albumBorderRadius ?? this.albumBorderRadius,
    albumTitleStyle: albumTitleStyle ?? this.albumTitleStyle,
    albumSubTitleStyle: albumSubTitleStyle ?? this.albumSubTitleStyle,
    cameraItemWidget: cameraItemWidget ?? this.cameraItemWidget,
    filterOptionGroup: filterOptionGroup ?? this.filterOptionGroup,
  );
}