copyWith method

  1. @override
AgentComposerSpec copyWith({
  1. StyleSpec<BoxSpec>? container,
  2. StyleSpec<BoxSpec>? field,
  3. double? fieldMaxHeight,
  4. 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,
  );
}