copyWith method

ValidateOrderInfo copyWith({
  1. int? chatId,
  2. int? messageId,
  3. OrderInfo? orderInfo,
  4. bool? allowSave,
})

Implementation

ValidateOrderInfo copyWith({
  int? chatId,
  int? messageId,
  OrderInfo? orderInfo,
  bool? allowSave,
}) => ValidateOrderInfo(
  chatId: chatId ?? this.chatId,
  messageId: messageId ?? this.messageId,
  orderInfo: orderInfo ?? this.orderInfo,
  allowSave: allowSave ?? this.allowSave,
);