search method
Implementation
Future<void> search() async {
state.loading();
await UServices.dashboard.readApiLogs(
p: _buildSearchParams(),
onOk: (UResponse<List<UApiLogResponse>> r) {
list(r.result ?? <UApiLogResponse>[]);
totalCount = r.totalCount;
setTotalPages(r.totalCount);
setListState(isEmpty: list.isEmpty);
},
onError: (UEmptyResponse e) => setError(e.message),
onException: setError,
);
}