Implementation
@override
List<Object> get extraInfo {
final response = this.response;
final responseError = this.responseError;
final responseStackTrace = this.responseStackTrace;
final responseStatus = this.responseStatus;
if (response is APIResponse) {
return [
response,
if (responseError != null &&
!identical(response.error, responseError) &&
!message.contains('$responseError'))
responseError,
if (responseStackTrace != null &&
!identical(response.stackTrace, responseStackTrace))
responseStackTrace,
if (responseStatus != null) responseStatus,
];
} else {
return [
if (response != null) response,
if (responseError != null &&
!identical(response, responseError) &&
!message.contains('$responseError'))
responseError,
if (responseStackTrace != null) responseStackTrace,
if (responseStatus != null) responseStatus,
];
}
}