copyWith method

AssistMessageSettings copyWith({
  1. bool? showAuthorName,
  2. bool? showTimestamp,
  3. bool? showAuthorAvatar,
  4. DateFormat? timestampFormat,
  5. TextStyle? textStyle,
  6. TextStyle? headerTextStyle,
  7. Color? backgroundColor,
  8. ShapeBorder? shape,
  9. double? widthFactor,
  10. Size? avatarSize,
  11. EdgeInsetsGeometry? margin,
  12. EdgeInsetsGeometry? padding,
  13. EdgeInsetsGeometry? avatarPadding,
  14. EdgeInsetsGeometry? headerPadding,
  15. EdgeInsetsGeometry? footerPadding,
})

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,
  );
}