copyWith method

OdbcErrorDetails copyWith({
  1. OdbcErrorCode? code,
  2. String? operation,
  3. Object? cause,
  4. StackTrace? stackTrace,
  5. String? transactionId,
  6. String? connectionId,
  7. int? requestId,
  8. int? workerId,
  9. int? attempt,
  10. bool? outcomeUnknown,
  11. List<OdbcError>? secondaryErrors,
})

Implementation

OdbcErrorDetails copyWith({
  OdbcErrorCode? code,
  String? operation,
  Object? cause,
  StackTrace? stackTrace,
  String? transactionId,
  String? connectionId,
  int? requestId,
  int? workerId,
  int? attempt,
  bool? outcomeUnknown,
  List<OdbcError>? secondaryErrors,
}) =>
    OdbcErrorDetails(
      code: code ?? this.code,
      operation: operation ?? this.operation,
      cause: cause ?? this.cause,
      stackTrace: stackTrace ?? this.stackTrace,
      transactionId: transactionId ?? this.transactionId,
      connectionId: connectionId ?? this.connectionId,
      requestId: requestId ?? this.requestId,
      workerId: workerId ?? this.workerId,
      attempt: attempt ?? this.attempt,
      outcomeUnknown: outcomeUnknown ?? this.outcomeUnknown,
      secondaryErrors:
          List.unmodifiable(secondaryErrors ?? this.secondaryErrors),
    );