throwOnError property

bool get throwOnError

Whether to throw a LuckyException for HTTP error responses (4xx/5xx).

Defaults to true. When false, all responses are returned as LuckyResponse regardless of status code and the caller is responsible for checking LuckyResponse.isSuccessful.

Implementation

bool get throwOnError => true;