copyWith method

StoryMakerTheme copyWith({
  1. Color? backgroundColor,
  2. Color? buttonColor,
  3. Color? buttonTextColor,
  4. Color? iconColor,
  5. Color? textColor,
  6. Color? borderColor,
  7. double? buttonBorderRadius,
  8. double? toolbarButtonBorderRadius,
  9. BoxShadow? buttonShadow,
  10. BoxShadow? toolbarButtonShadow,
  11. ButtonStyle? doneButtonStyle,
  12. BoxDecoration? toolbarButtonStyle,
  13. Color? overlayColor,
  14. Color? textInputOverlayColor,
  15. Color? removeWidgetColor,
  16. double? removeWidgetBorderRadius,
  17. Color? stickerSelectorBackgroundColor,
  18. Color? stickerSelectorBorderColor,
  19. Color? colorPickerBackgroundColor,
  20. Color? gradientSelectorBackgroundColor,
  21. double? safeAreaBorderRadius,
})

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

Implementation

StoryMakerTheme copyWith({
  Color? backgroundColor,
  Color? buttonColor,
  Color? buttonTextColor,
  Color? iconColor,
  Color? textColor,
  Color? borderColor,
  double? buttonBorderRadius,
  double? toolbarButtonBorderRadius,
  BoxShadow? buttonShadow,
  BoxShadow? toolbarButtonShadow,
  ButtonStyle? doneButtonStyle,
  BoxDecoration? toolbarButtonStyle,
  Color? overlayColor,
  Color? textInputOverlayColor,
  Color? removeWidgetColor,
  double? removeWidgetBorderRadius,
  Color? stickerSelectorBackgroundColor,
  Color? stickerSelectorBorderColor,
  Color? colorPickerBackgroundColor,
  Color? gradientSelectorBackgroundColor,
  double? safeAreaBorderRadius,
}) {
  return StoryMakerTheme(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    buttonColor: buttonColor ?? this.buttonColor,
    buttonTextColor: buttonTextColor ?? this.buttonTextColor,
    iconColor: iconColor ?? this.iconColor,
    textColor: textColor ?? this.textColor,
    borderColor: borderColor ?? this.borderColor,
    buttonBorderRadius: buttonBorderRadius ?? this.buttonBorderRadius,
    toolbarButtonBorderRadius:
        toolbarButtonBorderRadius ?? this.toolbarButtonBorderRadius,
    buttonShadow: buttonShadow ?? this.buttonShadow,
    toolbarButtonShadow: toolbarButtonShadow ?? this.toolbarButtonShadow,
    doneButtonStyle: doneButtonStyle ?? this.doneButtonStyle,
    toolbarButtonStyle: toolbarButtonStyle ?? this.toolbarButtonStyle,
    overlayColor: overlayColor ?? this.overlayColor,
    textInputOverlayColor:
        textInputOverlayColor ?? this.textInputOverlayColor,
    removeWidgetColor: removeWidgetColor ?? this.removeWidgetColor,
    removeWidgetBorderRadius:
        removeWidgetBorderRadius ?? this.removeWidgetBorderRadius,
    stickerSelectorBackgroundColor:
        stickerSelectorBackgroundColor ?? this.stickerSelectorBackgroundColor,
    stickerSelectorBorderColor:
        stickerSelectorBorderColor ?? this.stickerSelectorBorderColor,
    colorPickerBackgroundColor:
        colorPickerBackgroundColor ?? this.colorPickerBackgroundColor,
    gradientSelectorBackgroundColor: gradientSelectorBackgroundColor ??
        this.gradientSelectorBackgroundColor,
    safeAreaBorderRadius: safeAreaBorderRadius ?? this.safeAreaBorderRadius,
  );
}