copyWith method
AgentComposerSpec
copyWith({
- StyleSpec<
BoxSpec> ? container, - StyleSpec<
BoxSpec> ? field, - double? fieldMaxHeight,
- StyleSpec<
FlexBoxSpec> ? toolbar,
inherited
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
AgentComposerSpec copyWith({
StyleSpec<BoxSpec>? container,
StyleSpec<BoxSpec>? field,
double? fieldMaxHeight,
StyleSpec<FlexBoxSpec>? toolbar,
}) {
return AgentComposerSpec(
container: container ?? this.container,
field: field ?? this.field,
fieldMaxHeight: fieldMaxHeight ?? this.fieldMaxHeight,
toolbar: toolbar ?? this.toolbar,
);
}