copyWith method
AgentConversationSpec
copyWith({
- StyleSpec<
BoxSpec> ? container, - StyleSpec<
BoxSpec> ? turn, - double? maxWidth,
- EdgeInsetsGeometry? padding,
- double? turnSpacing,
- double? blockSpacing,
- StyleSpec<
BoxSpec> ? latest, - 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,
);
}