copyWith method
AssistMessageSettings
copyWith({
- bool? showAuthorName,
- bool? showTimestamp,
- bool? showAuthorAvatar,
- DateFormat? timestampFormat,
- TextStyle? textStyle,
- TextStyle? headerTextStyle,
- Color? backgroundColor,
- ShapeBorder? shape,
- double? widthFactor,
- Size? avatarSize,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? avatarPadding,
- EdgeInsetsGeometry? headerPadding,
Creates a copy of this bubble settings with the given fields replaced by the new values.
Implementation
AssistMessageSettings copyWith({
bool? showAuthorName,
bool? showTimestamp,
bool? showAuthorAvatar,
DateFormat? timestampFormat,
TextStyle? textStyle,
TextStyle? headerTextStyle,
Color? backgroundColor,
ShapeBorder? shape,
double? widthFactor,
Size? avatarSize,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? avatarPadding,
EdgeInsetsGeometry? headerPadding,
EdgeInsetsGeometry? footerPadding,
}) {
return AssistMessageSettings(
showAuthorName: showAuthorName ?? this.showAuthorName,
showTimestamp: showTimestamp ?? this.showTimestamp,
showAuthorAvatar: showAuthorAvatar ?? this.showAuthorAvatar,
timestampFormat: timestampFormat ?? this.timestampFormat,
textStyle: textStyle ?? this.textStyle,
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
backgroundColor: backgroundColor ?? this.backgroundColor,
shape: shape ?? this.shape,
widthFactor: widthFactor ?? this.widthFactor,
avatarSize: avatarSize ?? this.avatarSize,
margin: margin ?? this.margin,
padding: padding ?? this.padding,
avatarPadding: avatarPadding ?? this.avatarPadding,
headerPadding: headerPadding ?? this.headerPadding,
footerPadding: footerPadding ?? this.footerPadding,
);
}