copyWith method
MessageSendingStateFailed
copyWith({
- TdError? error,
- bool? canRetry,
- bool? needAnotherSender,
- bool? needAnotherReplyQuote,
- bool? needDropReply,
- int? requiredPaidMessageStarCount,
- double? retryAfter,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
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,
);