copyWith method

ChatEntry copyWith({
  1. String? text,
  2. bool? streaming,
  3. ChatFigures? figures,
})

The same message with more text, a finished state or its figures.

Implementation

ChatEntry copyWith({String? text, bool? streaming, ChatFigures? figures}) =>
    ChatEntry(
      role: role,
      text: text ?? this.text,
      streaming: streaming ?? this.streaming,
      figures: figures ?? this.figures,
    );