TrayRequestHookResponse<RequestType extends TrayRequest, ResultType, MetadataType extends TrayRequestMetadata> constructor

TrayRequestHookResponse<RequestType extends TrayRequest, ResultType, MetadataType extends TrayRequestMetadata>({
  1. required Future<void> refetch(
    1. Map<String, String?> overwriteParams
    ),
  2. required FetchMoreMethodType<RequestType, ResultType, TrayRequestMetadata> fetchMore,
  3. required UseMakeRequestFetchMethod<RequestType, ResultType, TrayRequestMetadata> fetch,
  4. required RequestType request,
  5. required MetadataType? metadata,
  6. TrayRequestError? error,
  7. bool loading = true,
  8. bool fetchMoreLoading = false,
  9. ResultType? data,
})

Implementation

TrayRequestHookResponse({
  required this.refetch,
  required this.fetchMore,
  required this.fetch,
  required this.request,
  required this.metadata,
  this.error,
  this.loading = true,
  this.fetchMoreLoading = false,
  this.data,
});