copyWith method
GallerySetting
copyWith({
- SelectedStyle? selectedStyle,
- VoidCallback? onReachedMaximumLimit,
- RequestType? requestType,
- int? maximum,
- bool? enableCamera,
- int? crossAxisCount,
- bool backAndUnselect()?,
- dynamic onItemClick()?,
- Widget? actionButton,
- Alignment? selectionCountAlignment,
- TextStyle? selectionCountTextStyle,
- Color? selectionCountBackgroundColor,
- double? selectionCountBackgroundSize,
- Color? selectionCountRingColor,
- double? selectionCountRingSize,
- EdgeInsets? selectionCountMargin,
- Widget selectionCountBuilder(
- int index
- EdgeInsets? padding,
- double? space,
- BorderRadius? itemBorderRadius,
- Widget? albumBackground,
- Color? albumColor,
- int? albumImageSize,
- BorderRadius? albumBorderRadius,
- TextStyle? albumTitleStyle,
- TextStyle? albumSubTitleStyle,
- Widget? cameraItemWidget,
- 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,
);
}