We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 60cca83 + 047d1bd commit 79d6712Copy full SHA for 79d6712
lib/networking/ny_base_api_service.dart
@@ -156,7 +156,7 @@ class NyBaseApiService {
156
/// You can return a different value using this callback.
157
handleResponse<T>(Response response,
158
{Function(Response response)? handleSuccess}) {
159
- bool wasSuccessful = response.statusCode == 200;
+ bool wasSuccessful = response.statusCode >= 200 && response.statusCode < 300;
160
161
if (wasSuccessful == true && handleSuccess != null) {
162
return handleSuccess(response);
0 commit comments