readOverview method
Implementation
Future<void> readOverview() async {
state.loading();
await UServices.gold.readAccount(
onOk: (UResponse<UGoldAccountResponse> r) => account.value = r.result,
onError: (UEmptyResponse e) {},
onException: (String e) {},
);
await UServices.gold.readQuote(
p: UGoldQuoteParams(),
onOk: (UResponse<UGoldQuoteResponse> r) => quote.value = r.result,
onError: (UEmptyResponse e) {},
onException: (String e) {},
);
await UServices.gold.readBalances(
onOk: (UResponse<List<UGoldBalanceResponse>> r) {
balances.value = r.result ?? <UGoldBalanceResponse>[];
state.loaded();
},
onError: (UEmptyResponse e) => setError(e.message),
onException: setError,
);
}