copyWith method

ImageEditorTheme copyWith({
  1. HelperLineTheme? helperLine,
  2. PaintingEditorTheme? paintingEditor,
  3. TextEditorTheme? textEditor,
  4. CropRotateEditorTheme? cropRotateEditor,
  5. FilterEditorTheme? filterEditor,
  6. BlurEditorTheme? blurEditor,
  7. EmojiEditorTheme? emojiEditor,
  8. StickerEditorTheme? stickerEditor,
  9. double? outsideCaptureAreaLayerOpacity,
  10. SubEditorPageTheme? subEditorPage,
  11. Color? background,
  12. Color? bottomBarBackgroundColor,
  13. Color? appBarBackgroundColor,
  14. Color? appBarForegroundColor,
  15. LoadingDialogTheme? loadingDialogTheme,
  16. AdaptiveDialogTheme? adaptiveDialogTheme,
  17. SystemUiOverlayStyle? uiOverlayStyle,
  18. ThemeLayerInteraction? layerInteraction,
  19. EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder,
})

Creates a copy of this ImageEditorTheme object with the given fields replaced with new values.

The copyWith method allows you to create a new instance of ImageEditorTheme with some properties updated while keeping the others unchanged.

Implementation

ImageEditorTheme copyWith({
  HelperLineTheme? helperLine,
  PaintingEditorTheme? paintingEditor,
  TextEditorTheme? textEditor,
  CropRotateEditorTheme? cropRotateEditor,
  FilterEditorTheme? filterEditor,
  BlurEditorTheme? blurEditor,
  EmojiEditorTheme? emojiEditor,
  StickerEditorTheme? stickerEditor,
  double? outsideCaptureAreaLayerOpacity,
  SubEditorPageTheme? subEditorPage,
  Color? background,
  Color? bottomBarBackgroundColor,
  Color? appBarBackgroundColor,
  Color? appBarForegroundColor,
  LoadingDialogTheme? loadingDialogTheme,
  AdaptiveDialogTheme? adaptiveDialogTheme,
  SystemUiOverlayStyle? uiOverlayStyle,
  ThemeLayerInteraction? layerInteraction,
  EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder,
}) {
  return ImageEditorTheme(
    helperLine: helperLine ?? this.helperLine,
    paintingEditor: paintingEditor ?? this.paintingEditor,
    textEditor: textEditor ?? this.textEditor,
    cropRotateEditor: cropRotateEditor ?? this.cropRotateEditor,
    filterEditor: filterEditor ?? this.filterEditor,
    blurEditor: blurEditor ?? this.blurEditor,
    emojiEditor: emojiEditor ?? this.emojiEditor,
    stickerEditor: stickerEditor ?? this.stickerEditor,
    outsideCaptureAreaLayerOpacity:
        outsideCaptureAreaLayerOpacity ?? this.outsideCaptureAreaLayerOpacity,
    subEditorPage: subEditorPage ?? this.subEditorPage,
    background: background ?? this.background,
    bottomBarBackgroundColor:
        bottomBarBackgroundColor ?? this.bottomBarBackgroundColor,
    appBarBackgroundColor:
        appBarBackgroundColor ?? this.appBarBackgroundColor,
    appBarForegroundColor:
        appBarForegroundColor ?? this.appBarForegroundColor,
    loadingDialogTheme: loadingDialogTheme ?? this.loadingDialogTheme,
    adaptiveDialogTheme: adaptiveDialogTheme ?? this.adaptiveDialogTheme,
    uiOverlayStyle: uiOverlayStyle ?? this.uiOverlayStyle,
    layerInteraction: layerInteraction ?? this.layerInteraction,
    editorBoxConstraintsBuilder:
        editorBoxConstraintsBuilder ?? this.editorBoxConstraintsBuilder,
  );
}