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