copyWith method
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,
);