copyWith method

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

Helper function

Implementation

GallerySetting copyWith({
  bool? enableCropper,
  bool? saveCropper,
  SelectedStyle? selectedStyle,
  VoidCallback? onReachedMaximumLimit,
  RequestType? requestType,
  int? maximum,
  bool? enableCamera,
  int? crossAxisCount,
  bool Function()? backAndUnselect,
  Function(LikkEntity, List<LikkEntity>)? 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,
}) {
  return GallerySetting(
    enableCropper: enableCropper ?? this.enableCropper,
    saveCropper: saveCropper ?? this.saveCropper,
    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,
  );
}