copyWith method

  1. @override
AgentConversationSpec copyWith({
  1. StyleSpec<BoxSpec>? container,
  2. StyleSpec<BoxSpec>? turn,
  3. double? maxWidth,
  4. EdgeInsetsGeometry? padding,
  5. double? turnSpacing,
  6. double? blockSpacing,
  7. StyleSpec<BoxSpec>? latest,
  8. StyleSpec<BoxSpec>? empty,
})
inherited

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
AgentConversationSpec copyWith({
  StyleSpec<BoxSpec>? container,
  StyleSpec<BoxSpec>? turn,
  double? maxWidth,
  EdgeInsetsGeometry? padding,
  double? turnSpacing,
  double? blockSpacing,
  StyleSpec<BoxSpec>? latest,
  StyleSpec<BoxSpec>? empty,
}) {
  return AgentConversationSpec(
    container: container ?? this.container,
    turn: turn ?? this.turn,
    maxWidth: maxWidth ?? this.maxWidth,
    padding: padding ?? this.padding,
    turnSpacing: turnSpacing ?? this.turnSpacing,
    blockSpacing: blockSpacing ?? this.blockSpacing,
    latest: latest ?? this.latest,
    empty: empty ?? this.empty,
  );
}