maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult cancel(
    1. Object? error,
    2. RequestOptions? options
    )?,
  2. TResult connectionTimeout()?,
  3. TResult sendTimeout()?,
  4. TResult receiveTimeout()?,
  5. TResult badCertificate()?,
  6. TResult connectionError()?,
  7. TResult badResponse(
    1. Response? response,
    2. int? statusCode
    )?,
  8. TResult businessException(
    1. String message,
    2. Object? error,
    3. StackTrace? stackTrace
    )?,
  9. 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;