copyWith method

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

Implementation

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