copyWith method

ReportChat copyWith({
  1. int? chatId,
  2. List<int>? messageIds,
  3. ChatReportReason? reason,
  4. String? text,
})

Implementation

ReportChat copyWith({
  int? chatId,
  List<int>? messageIds,
  ChatReportReason? reason,
  String? text,
}) => ReportChat(
  chatId: chatId ?? this.chatId,
  messageIds: messageIds ?? this.messageIds,
  reason: reason ?? this.reason,
  text: text ?? this.text,
);