copyWith method

  1. @override
AgentAnswerSpec copyWith({
  1. StyleSpec<FlexBoxSpec>? container,
  2. StyleSpec<BoxSpec>? body,
  3. StyleSpec<TextSpec>? text,
  4. StyleSpec<BoxSpec>? sources,
  5. StyleSpec<FlexBoxSpec>? actions,
  6. StyleSpec<TextSpec>? feedback,
})
inherited

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

Implementation

@override
AgentAnswerSpec copyWith({
  StyleSpec<FlexBoxSpec>? container,
  StyleSpec<BoxSpec>? body,
  StyleSpec<TextSpec>? text,
  StyleSpec<BoxSpec>? sources,
  StyleSpec<FlexBoxSpec>? actions,
  StyleSpec<TextSpec>? feedback,
}) {
  return AgentAnswerSpec(
    container: container ?? this.container,
    body: body ?? this.body,
    text: text ?? this.text,
    sources: sources ?? this.sources,
    actions: actions ?? this.actions,
    feedback: feedback ?? this.feedback,
  );
}