copyWith method

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

Implementation

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