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