read method
Implementation
Future<void> read() async {
final UUserResponse? u = selectedUser.value;
if (u == null) return;
state.loading();
await UServices.wallet.readByUserId(
p: UIdParams(id: u.id),
onOk: (UResponse<List<UWalletResponse>> r) {
wallets.value = r.result ?? <UWalletResponse>[];
state.loaded();
_loadTxns();
_loadSummary();
},
onError: (UEmptyResponse e) => setError(e.message),
onException: setError,
);
}