when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. {required TResult requestCancelled(
      ),
    1. required TResult unauthorizedRequest(
        ),
      1. required TResult badRequest(
          ),
        1. required TResult notFound(
          1. String reason
          ),
        2. required TResult methodNotAllowed(
            ),
          1. required TResult notAcceptable(
              ),
            1. required TResult requestTimeout(
                ),
              1. required TResult sendTimeout(
                  ),
                1. required TResult conflict(
                    ),
                  1. required TResult internalServerError(
                      ),
                    1. required TResult notImplemented(
                        ),
                      1. required TResult serviceUnavailable(
                          ),
                        1. required TResult noInternetConnection(
                            ),
                          1. required TResult formatException(
                              ),
                            1. required TResult unableToProcess(
                                ),
                              1. required TResult defaultError(
                                1. String error
                                ),
                              2. required TResult unexpectedError(
                                  )}
                                )
                                inherited

                                Implementation

                                @optionalTypeArgs
                                TResult when<TResult extends Object?>({
                                  required TResult Function() requestCancelled,
                                  required TResult Function() unauthorizedRequest,
                                  required TResult Function() badRequest,
                                  required TResult Function(String reason) notFound,
                                  required TResult Function() methodNotAllowed,
                                  required TResult Function() notAcceptable,
                                  required TResult Function() requestTimeout,
                                  required TResult Function() sendTimeout,
                                  required TResult Function() conflict,
                                  required TResult Function() internalServerError,
                                  required TResult Function() notImplemented,
                                  required TResult Function() serviceUnavailable,
                                  required TResult Function() noInternetConnection,
                                  required TResult Function() formatException,
                                  required TResult Function() unableToProcess,
                                  required TResult Function(String error) defaultError,
                                  required TResult Function() unexpectedError,
                                }) =>
                                    throw _privateConstructorUsedError;