copyWith method
AssistBubbleSettings
copyWith({
- bool? showUserName,
- bool? showTimestamp,
- bool? showUserAvatar,
- DateFormat? timestampFormat,
- TextStyle? textStyle,
- TextStyle? headerTextStyle,
- Color? contentBackgroundColor,
- ShapeBorder? contentShape,
- double? widthFactor,
- Size? avatarSize,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? contentPadding,
- EdgeInsetsGeometry? avatarPadding,
- EdgeInsetsGeometry? headerPadding,
Creates a copy of this bubble settings with the given fields replaced by the new values.
Implementation
AssistBubbleSettings copyWith({
bool? showUserName,
bool? showTimestamp,
bool? showUserAvatar,
DateFormat? timestampFormat,
TextStyle? textStyle,
TextStyle? headerTextStyle,
Color? contentBackgroundColor,
ShapeBorder? contentShape,
double? widthFactor,
Size? avatarSize,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? contentPadding,
EdgeInsetsGeometry? avatarPadding,
EdgeInsetsGeometry? headerPadding,
EdgeInsetsGeometry? footerPadding,
}) {
return AssistBubbleSettings(
showUserName: showUserName ?? this.showUserName,
showTimestamp: showTimestamp ?? this.showTimestamp,
showUserAvatar: showUserAvatar ?? this.showUserAvatar,
timestampFormat: timestampFormat ?? this.timestampFormat,
textStyle: textStyle ?? this.textStyle,
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
contentBackgroundColor:
contentBackgroundColor ?? this.contentBackgroundColor,
contentShape: contentShape ?? this.contentShape,
widthFactor: widthFactor ?? this.widthFactor,
avatarSize: avatarSize ?? this.avatarSize,
padding: padding ?? this.padding,
contentPadding: contentPadding ?? this.contentPadding,
avatarPadding: avatarPadding ?? this.avatarPadding,
headerPadding: headerPadding ?? this.headerPadding,
footerPadding: footerPadding ?? this.footerPadding,
);
}