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