maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult cancel(
- Object? error,
- RequestOptions? options
- TResult connectionTimeout()?,
- TResult sendTimeout()?,
- TResult receiveTimeout()?,
- TResult badCertificate()?,
- TResult connectionError()?,
- TResult badResponse(
- Response? response,
- int? statusCode
- TResult businessException(
- String message,
- Object? error,
- StackTrace? stackTrace
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(@igFreezedJson Object? error,
@igFreezedJson RequestOptions? options)?
cancel,
TResult Function()? connectionTimeout,
TResult Function()? sendTimeout,
TResult Function()? receiveTimeout,
TResult Function()? badCertificate,
TResult Function()? connectionError,
TResult Function(
@igFreezedJson Response<dynamic>? response, int? statusCode)?
badResponse,
TResult Function(String message, @igFreezedJson Object? error,
@igFreezedJson StackTrace? stackTrace)?
businessException,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;