load method
Implementation
Future<void> load() async {
state.loading();
await UServices.accounting.report(
p: UAccountingReportParams(userId: user.value?.id, fromDate: fromDate, toDate: toDate),
onOk: (UResponse<UAccountingReportResponse> r) {
report.value = r.result;
state.loaded();
},
onError: (UEmptyResponse e) {
state.error();
UToast.error(message: e.message);
},
onException: (String e) {
state.error();
UToast.error(message: e);
},
);
}