search method

Future<void> search()

Implementation

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