maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult cancel(
    1. BaseApiCancelException value
    )?,
  2. TResult connectionTimeout(
    1. BaseApiConnectionTimeoutException value
    )?,
  3. TResult sendTimeout(
    1. BaseApiSendTimeoutException value
    )?,
  4. TResult receiveTimeout(
    1. BaseApiReceiveTimeoutException value
    )?,
  5. TResult badCertificate(
    1. BaseApiBadCertificateException value
    )?,
  6. TResult connectionError(
    1. BaseApiConnectionErrorException value
    )?,
  7. TResult badResponse(
    1. BaseApiBadResponseException value
    )?,
  8. TResult businessException(
    1. BaseApiBusinessException value
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(BaseApiCancelException value)? cancel,
  TResult Function(BaseApiConnectionTimeoutException value)?
      connectionTimeout,
  TResult Function(BaseApiSendTimeoutException value)? sendTimeout,
  TResult Function(BaseApiReceiveTimeoutException value)? receiveTimeout,
  TResult Function(BaseApiBadCertificateException value)? badCertificate,
  TResult Function(BaseApiConnectionErrorException value)? connectionError,
  TResult Function(BaseApiBadResponseException value)? badResponse,
  TResult Function(BaseApiBusinessException value)? businessException,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;