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

Annotations
  • @GenerateMocks([http.Client])

Constructors

TrayRequestHookResponse({required Future<void> refetch(Map<String, String?> overwriteParams), 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})

Properties

data → ResultType?
final
error TrayRequestError?
final
fetch UseMakeRequestFetchMethod<RequestType, ResultType, TrayRequestMetadata>
final
fetchMore FetchMoreMethodType<RequestType, ResultType, TrayRequestMetadata>
final
fetchMoreLoading bool
final
hashCode int
The hash code for this object.
no setterinherited
loading bool
final
metadata → MetadataType?
final
refetch Future<void> Function(Map<String, String?> overwriteParams)
final
request → RequestType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? loading, bool? fetchMoreLoading, MetadataType? metadata, ResultType? data, TrayRequestError? error, RequestType? request, UseMakeRequestFetchMethod<RequestType, ResultType, MetadataType>? fetch, Future<void> refetch(Map<String, String?> overwriteParams)?, FetchMoreMethodType<RequestType, ResultType, MetadataType>? fetchMore}) TrayRequestHookResponse<RequestType, ResultType, MetadataType>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited