when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult requestCancelled(),
- required TResult unauthorizedRequest(),
- required TResult badRequest(),
- required TResult notFound(
- String reason
- required TResult methodNotAllowed(),
- required TResult notAcceptable(),
- required TResult requestTimeout(),
- required TResult sendTimeout(),
- required TResult conflict(),
- required TResult internalServerError(),
- required TResult notImplemented(),
- required TResult noInternetConnection(),
- required TResult formatException(),
- required TResult unableToProcess(),
- required TResult defaultError(
- String error
- 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;