copyWith method

FoundChatMessages copyWith({
  1. int? totalCount,
  2. List<Message>? messages,
  3. int? nextFromMessageId,
})

Implementation

FoundChatMessages copyWith({
  int? totalCount,
  List<Message>? messages,
  int? nextFromMessageId,
}) => FoundChatMessages(
  totalCount: totalCount ?? this.totalCount,
  messages: messages ?? this.messages,
  nextFromMessageId: nextFromMessageId ?? this.nextFromMessageId,
);