the_ghoost

replace apiModel with null

arror apear when no connexion in the example
... ... @@ -8,7 +8,7 @@ class HomeProvider {
return ApiModel.fromJson(response.data);
} catch (e) {
print(e.toString());
return ApiModel();
return null;
}
}
}
... ...