TrayRequestHookResponse<RequestType extends TrayRequest, ResultType, MetadataType extends TrayRequestMetadata> constructor
TrayRequestHookResponse<RequestType extends TrayRequest, ResultType, MetadataType extends TrayRequestMetadata> ({
- required Future<
void> refetch(), - required FetchMoreMethodType<
RequestType, ResultType, TrayRequestMetadata> fetchMore, - required UseMakeRequestFetchMethod<
RequestType, ResultType, TrayRequestMetadata> fetch, - required RequestType request,
- required MetadataType? metadata,
- TrayRequestError? error,
- bool loading = true,
- bool fetchMoreLoading = false,
- 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,
});