copyWith method

Implementation

StreamMessageMetadataStyle copyWith({
  StreamMessageLayoutProperty<TextStyle?>? usernameTextStyle,
  StreamMessageLayoutProperty<Color?>? usernameColor,
  StreamMessageLayoutProperty<TextStyle?>? timestampTextStyle,
  StreamMessageLayoutProperty<Color?>? timestampColor,
  StreamMessageLayoutProperty<TextStyle?>? editedTextStyle,
  StreamMessageLayoutProperty<Color?>? editedColor,
  StreamMessageLayoutProperty<TextStyle?>? statusTextStyle,
  StreamMessageLayoutProperty<Color?>? statusColor,
  StreamMessageLayoutProperty<double?>? statusIconSize,
  StreamMessageLayoutProperty<double?>? spacing,
  StreamMessageLayoutProperty<double?>? statusSpacing,
  StreamMessageLayoutProperty<double?>? minHeight,
}) {
  final _this = (this as StreamMessageMetadataStyle);

  return StreamMessageMetadataStyle(
    usernameTextStyle: usernameTextStyle ?? _this.usernameTextStyle,
    usernameColor: usernameColor ?? _this.usernameColor,
    timestampTextStyle: timestampTextStyle ?? _this.timestampTextStyle,
    timestampColor: timestampColor ?? _this.timestampColor,
    editedTextStyle: editedTextStyle ?? _this.editedTextStyle,
    editedColor: editedColor ?? _this.editedColor,
    statusTextStyle: statusTextStyle ?? _this.statusTextStyle,
    statusColor: statusColor ?? _this.statusColor,
    statusIconSize: statusIconSize ?? _this.statusIconSize,
    spacing: spacing ?? _this.spacing,
    statusSpacing: statusSpacing ?? _this.statusSpacing,
    minHeight: minHeight ?? _this.minHeight,
  );
}