maybeWhen<TResult extends Object?> method

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

                                  Implementation

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