copyWith method

  1. @override
MessageSendingStateFailed copyWith({
  1. TdError? error,
  2. bool? canRetry,
  3. bool? needAnotherSender,
  4. bool? needAnotherReplyQuote,
  5. bool? needDropReply,
  6. 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,
    );