copyWith method
AgentAnswerSpec
copyWith({
- StyleSpec<
FlexBoxSpec> ? container, - StyleSpec<
BoxSpec> ? body, - StyleSpec<
TextSpec> ? text, - StyleSpec<
BoxSpec> ? sources, - StyleSpec<
FlexBoxSpec> ? actions, - 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,
);
}