updateTitle method

Conversation updateTitle(
  1. String newTitle
)

Updates the title of this conversation.

The newTitle replaces the current title, and the updatedAt timestamp is automatically updated.

Implementation

Conversation updateTitle(String newTitle) => copyWith(
      title: newTitle,
      updatedAt: DateTime.now(),
    );