getRequest method

SupabaseQuery getRequest(
  1. AppApisState state,
  2. SupabaseAction action
)

Implementation

SupabaseQuery getRequest(AppApisState state, SupabaseAction action) {
  assert(state.apis[action.requestID] != null, 'No request found');
  assert(state.apis[action.requestID] is SupabaseQuery,
      'Request is not of type SupabaseQuery');
  final request = state.apis[action.requestID] as SupabaseQuery?;
  if (request == null) throw Exception('No request found');
  return request;
}