copyWith method

  1. @override
MessageSendingStateFailed copyWith({
  1. int? errorCode,
  2. String? errorMessage,
  3. bool? canRetry,
  4. bool? needAnotherSender,
  5. double? retryAfter,
})
override

Implementation

@override
MessageSendingStateFailed copyWith({
  int? errorCode,
  String? errorMessage,
  bool? canRetry,
  bool? needAnotherSender,
  double? retryAfter,
}) => MessageSendingStateFailed(
  errorCode: errorCode ?? this.errorCode,
  errorMessage: errorMessage ?? this.errorMessage,
  canRetry: canRetry ?? this.canRetry,
  needAnotherSender: needAnotherSender ?? this.needAnotherSender,
  retryAfter: retryAfter ?? this.retryAfter,
);