handleHttpData method
Implementation
void handleHttpData(
{required ViewStateHttpData<T, E> httpData, required LoadType loadType}) {
if (httpData.success) {
data = httpData.data as T;
setSuccess();
} else {
setError(httpData.error);
}
if (isSuccess) {
handleResult.call(httpData, loadType);
} else {
handleError(httpData, loadType);
}
}