copyWith method
BubbleStyle
copyWith({
- double? userBubbleMaxWidth,
- double? aiBubbleMaxWidth,
- double? userBubbleMinWidth,
- double? aiBubbleMinWidth,
- Color? userBubbleColor,
- Color? aiBubbleColor,
- Color? userNameColor,
- Color? aiNameColor,
- Color? copyIconColor,
- double? userBubbleTopLeftRadius,
- double? userBubbleTopRightRadius,
- double? aiBubbleTopLeftRadius,
- double? aiBubbleTopRightRadius,
- double? bottomLeftRadius,
- double? bottomRightRadius,
- bool? enableShadow,
- double? shadowOpacity,
- double? shadowBlurRadius,
- Offset? shadowOffset,
Creates a copy of this BubbleStyle with the given fields replaced
Implementation
BubbleStyle copyWith({
double? userBubbleMaxWidth,
double? aiBubbleMaxWidth,
double? userBubbleMinWidth,
double? aiBubbleMinWidth,
Color? userBubbleColor,
Color? aiBubbleColor,
Color? userNameColor,
Color? aiNameColor,
Color? copyIconColor,
double? userBubbleTopLeftRadius,
double? userBubbleTopRightRadius,
double? aiBubbleTopLeftRadius,
double? aiBubbleTopRightRadius,
double? bottomLeftRadius,
double? bottomRightRadius,
bool? enableShadow,
double? shadowOpacity,
double? shadowBlurRadius,
Offset? shadowOffset,
}) {
return BubbleStyle(
userBubbleMaxWidth: userBubbleMaxWidth ?? this.userBubbleMaxWidth,
aiBubbleMaxWidth: aiBubbleMaxWidth ?? this.aiBubbleMaxWidth,
userBubbleMinWidth: userBubbleMinWidth ?? this.userBubbleMinWidth,
aiBubbleMinWidth: aiBubbleMinWidth ?? this.aiBubbleMinWidth,
userBubbleColor: userBubbleColor ?? this.userBubbleColor,
aiBubbleColor: aiBubbleColor ?? this.aiBubbleColor,
userNameColor: userNameColor ?? this.userNameColor,
aiNameColor: aiNameColor ?? this.aiNameColor,
copyIconColor: copyIconColor ?? this.copyIconColor,
userBubbleTopLeftRadius:
userBubbleTopLeftRadius ?? this.userBubbleTopLeftRadius,
userBubbleTopRightRadius:
userBubbleTopRightRadius ?? this.userBubbleTopRightRadius,
aiBubbleTopLeftRadius:
aiBubbleTopLeftRadius ?? this.aiBubbleTopLeftRadius,
aiBubbleTopRightRadius:
aiBubbleTopRightRadius ?? this.aiBubbleTopRightRadius,
bottomLeftRadius: bottomLeftRadius ?? this.bottomLeftRadius,
bottomRightRadius: bottomRightRadius ?? this.bottomRightRadius,
enableShadow: enableShadow ?? this.enableShadow,
shadowOpacity: shadowOpacity ?? this.shadowOpacity,
shadowBlurRadius: shadowBlurRadius ?? this.shadowBlurRadius,
shadowOffset: shadowOffset ?? this.shadowOffset,
);
}