map<TResult extends Object?> method

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

Implementation

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