map<TResult extends Object?> method

  1. @optionalTypeArgs
TResult map<TResult extends Object?>({
  1. required TResult requestCancelled(
    1. RequestCancelled value
    ),
  2. required TResult unauthorizedRequest(
    1. UnauthorizedRequest value
    ),
  3. required TResult badRequest(
    1. BadRequest value
    ),
  4. required TResult notFound(
    1. NotFound value
    ),
  5. required TResult methodNotAllowed(
    1. MethodNotAllowed value
    ),
  6. required TResult notAcceptable(
    1. NotAcceptable value
    ),
  7. required TResult requestTimeout(
    1. RequestTimeout value
    ),
  8. required TResult sendTimeout(
    1. SendTimeout value
    ),
  9. required TResult conflict(
    1. Conflict value
    ),
  10. required TResult internalServerError(
    1. InternalServerError value
    ),
  11. required TResult notImplemented(
    1. NotImplemented value
    ),
  12. required TResult serviceUnavailable(
    1. ServiceUnavailable value
    ),
  13. required TResult noInternetConnection(
    1. NoInternetConnection value
    ),
  14. required TResult formatException(
    1. FormatException value
    ),
  15. required TResult unableToProcess(
    1. UnableToProcess value
    ),
  16. required TResult defaultError(
    1. DefaultError value
    ),
  17. required TResult unexpectedError(
    1. UnexpectedError value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(RequestCancelled value) requestCancelled,
  required TResult Function(UnauthorizedRequest value) unauthorizedRequest,
  required TResult Function(BadRequest value) badRequest,
  required TResult Function(NotFound value) notFound,
  required TResult Function(MethodNotAllowed value) methodNotAllowed,
  required TResult Function(NotAcceptable value) notAcceptable,
  required TResult Function(RequestTimeout value) requestTimeout,
  required TResult Function(SendTimeout value) sendTimeout,
  required TResult Function(Conflict value) conflict,
  required TResult Function(InternalServerError value) internalServerError,
  required TResult Function(NotImplemented value) notImplemented,
  required TResult Function(ServiceUnavailable value) serviceUnavailable,
  required TResult Function(NoInternetConnection value) noInternetConnection,
  required TResult Function(FormatException value) formatException,
  required TResult Function(UnableToProcess value) unableToProcess,
  required TResult Function(DefaultError value) defaultError,
  required TResult Function(UnexpectedError value) unexpectedError,
}) =>
    throw _privateConstructorUsedError;