copyWith method

GalleryConfig copyWith({
  1. String? albumTitle,
  2. bool? enableCamera,
  3. int? crossAxisCount,
  4. SlideSheetConfig? slideSheetConfig,
  5. CameraConfig? cameraConfig,
  6. dynamic onReachMaximum()?,
  7. Widget closingDialogBuilder()?,
  8. TextTheme? textTheme,
  9. ColorScheme? colorScheme,
  10. 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,
  );
}