copyWith method

ReportChatPhoto copyWith({
  1. int? chatId,
  2. int? fileId,
  3. ChatReportReason? reason,
  4. String? text,
})

Implementation

ReportChatPhoto copyWith({
  int? chatId,
  int? fileId,
  ChatReportReason? reason,
  String? text,
}) => ReportChatPhoto(
  chatId: chatId ?? this.chatId,
  fileId: fileId ?? this.fileId,
  reason: reason ?? this.reason,
  text: text ?? this.text,
);