copyWith method

VoicebotTheme copyWith({
  1. VoicebotCorner? corner,
  2. EdgeInsets? margin,
  3. double? buttonSize,
  4. double? buttonElevation,
  5. IconData? buttonIcon,
  6. Color? buttonBackground,
  7. Color? buttonForeground,
  8. Color? accent,
  9. Color? pulseColor,
  10. Color? panelBackground,
  11. double? panelRadius,
  12. double? panelMaxWidth,
  13. double? panelHeightFactor,
  14. Color? userBubbleColor,
  15. Color? userTextColor,
  16. Color? botBubbleColor,
  17. Color? botTextColor,
  18. double? bubbleRadius,
  19. double? spacing,
  20. TextStyle? titleStyle,
  21. TextStyle? bubbleTextStyle,
  22. VoicebotLabels? labels,
})

Implementation

VoicebotTheme copyWith({
  VoicebotCorner? corner,
  EdgeInsets? margin,
  double? buttonSize,
  double? buttonElevation,
  IconData? buttonIcon,
  Color? buttonBackground,
  Color? buttonForeground,
  Color? accent,
  Color? pulseColor,
  Color? panelBackground,
  double? panelRadius,
  double? panelMaxWidth,
  double? panelHeightFactor,
  Color? userBubbleColor,
  Color? userTextColor,
  Color? botBubbleColor,
  Color? botTextColor,
  double? bubbleRadius,
  double? spacing,
  TextStyle? titleStyle,
  TextStyle? bubbleTextStyle,
  VoicebotLabels? labels,
}) =>
    VoicebotTheme(
      corner: corner ?? this.corner,
      margin: margin ?? this.margin,
      buttonSize: buttonSize ?? this.buttonSize,
      buttonElevation: buttonElevation ?? this.buttonElevation,
      buttonIcon: buttonIcon ?? this.buttonIcon,
      buttonBackground: buttonBackground ?? this.buttonBackground,
      buttonForeground: buttonForeground ?? this.buttonForeground,
      accent: accent ?? this.accent,
      pulseColor: pulseColor ?? this.pulseColor,
      panelBackground: panelBackground ?? this.panelBackground,
      panelRadius: panelRadius ?? this.panelRadius,
      panelMaxWidth: panelMaxWidth ?? this.panelMaxWidth,
      panelHeightFactor: panelHeightFactor ?? this.panelHeightFactor,
      userBubbleColor: userBubbleColor ?? this.userBubbleColor,
      userTextColor: userTextColor ?? this.userTextColor,
      botBubbleColor: botBubbleColor ?? this.botBubbleColor,
      botTextColor: botTextColor ?? this.botTextColor,
      bubbleRadius: bubbleRadius ?? this.bubbleRadius,
      spacing: spacing ?? this.spacing,
      titleStyle: titleStyle ?? this.titleStyle,
      bubbleTextStyle: bubbleTextStyle ?? this.bubbleTextStyle,
      labels: labels ?? this.labels,
    );