copyWith method

MessageSendingStateFailed copyWith({
  1. TdError? error,
  2. bool? canRetry,
  3. bool? needAnotherSender,
  4. bool? needAnotherReplyQuote,
  5. bool? needDropReply,
  6. int? requiredPaidMessageStarCount,
  7. double? retryAfter,
})

Implementation

MessageSendingStateFailed copyWith({
  TdError? error,
  bool? canRetry,
  bool? needAnotherSender,
  bool? needAnotherReplyQuote,
  bool? needDropReply,
  int? requiredPaidMessageStarCount,
  double? retryAfter,
}) => MessageSendingStateFailed(
  error: error ?? this.error,
  canRetry: canRetry ?? this.canRetry,
  needAnotherSender: needAnotherSender ?? this.needAnotherSender,
  needAnotherReplyQuote: needAnotherReplyQuote ?? this.needAnotherReplyQuote,
  needDropReply: needDropReply ?? this.needDropReply,
  requiredPaidMessageStarCount:
      requiredPaidMessageStarCount ?? this.requiredPaidMessageStarCount,
  retryAfter: retryAfter ?? this.retryAfter,
);