copyWith method
GalleryConfig
copyWith({
- String? albumTitle,
- bool? enableCamera,
- int? crossAxisCount,
- SlideSheetConfig? slideSheetConfig,
- CameraConfig? cameraConfig,
- dynamic onReachMaximum()?,
- Widget closingDialogBuilder()?,
- TextTheme? textTheme,
- ColorScheme? colorScheme,
- SystemUiOverlayStyle? overlayStyle,
Helper function to copy its properties
Implementation
GalleryConfig copyWith({
String? albumTitle,
bool? enableCamera,
int? crossAxisCount,
SlideSheetConfig? slideSheetConfig,
CameraConfig? cameraConfig,
Function()? onReachMaximum,
Widget Function()? closingDialogBuilder,
TextTheme? textTheme,
ColorScheme? colorScheme,
SystemUiOverlayStyle? overlayStyle,
}) {
return GalleryConfig(
albumTitle: albumTitle ?? this.albumTitle,
enableCamera: enableCamera ?? this.enableCamera,
crossAxisCount: crossAxisCount ?? this.crossAxisCount,
slideSheetConfig: slideSheetConfig ?? this.slideSheetConfig,
cameraConfig: cameraConfig ?? this.cameraConfig,
onReachMaximum: onReachMaximum ?? this.onReachMaximum,
closingDialogBuilder: closingDialogBuilder ?? this.closingDialogBuilder,
colorScheme: colorScheme ?? this.colorScheme,
overlayStyle: overlayStyle ?? this.overlayStyle,
);
}