copyWith method
MessageSendingStateFailed
copyWith({
- TdError? error,
- bool? canRetry,
- bool? needAnotherSender,
- bool? needAnotherReplyQuote,
- bool? needDropReply,
- 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,
double? retryAfter,
}) =>
MessageSendingStateFailed(
error: error ?? this.error,
canRetry: canRetry ?? this.canRetry,
needAnotherSender: needAnotherSender ?? this.needAnotherSender,
needAnotherReplyQuote:
needAnotherReplyQuote ?? this.needAnotherReplyQuote,
needDropReply: needDropReply ?? this.needDropReply,
retryAfter: retryAfter ?? this.retryAfter,
);