copyWith method

ViewMessages copyWith({
  1. int? chatId,
  2. List<int>? messageIds,
  3. MessageSource? source,
  4. bool? forceRead,
})

Implementation

ViewMessages copyWith({
  int? chatId,
  List<int>? messageIds,
  MessageSource? source,
  bool? forceRead,
}) =>
    ViewMessages(
      chatId: chatId ?? this.chatId,
      messageIds: messageIds ?? this.messageIds,
      source: source ?? this.source,
      forceRead: forceRead ?? this.forceRead,
    );