copyWith method

MessageChat copyWith({
  1. String? role,
  2. String? content,
  3. String? created,
  4. bool? isSentByMe,
})

Implementation

MessageChat copyWith(
        {String? role, String? content, String? created, bool? isSentByMe}) =>
    MessageChat(
      role: role ?? this.role,
      content: content ?? this.content,
      created: created ?? this.created,
      isSentByMe: isSentByMe ?? this.isSentByMe,
    );