copyWith method

BubbleStyle copyWith({
  1. double? userBubbleMaxWidth,
  2. double? aiBubbleMaxWidth,
  3. double? userBubbleMinWidth,
  4. double? aiBubbleMinWidth,
  5. Color? userBubbleColor,
  6. Color? aiBubbleColor,
  7. Color? userNameColor,
  8. Color? aiNameColor,
  9. Color? copyIconColor,
  10. double? userBubbleTopLeftRadius,
  11. double? userBubbleTopRightRadius,
  12. double? aiBubbleTopLeftRadius,
  13. double? aiBubbleTopRightRadius,
  14. double? bottomLeftRadius,
  15. double? bottomRightRadius,
  16. bool? enableShadow,
  17. double? shadowOpacity,
  18. double? shadowBlurRadius,
  19. 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,
  );
}