copyWith method
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,
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,
);
}