fetchCauses method
Implementation
Future fetchCauses() async {
setBusy(true);
_causes = await _causesService.getCauses();
setBusy(false);
print("Fetched ${_causes.length} causes");
notifyListeners();
}
Future fetchCauses() async {
setBusy(true);
_causes = await _causesService.getCauses();
setBusy(false);
print("Fetched ${_causes.length} causes");
notifyListeners();
}