Client class
- Inheritance
Constructors
-
Client({required Link link, Cache? cache, StreamController<
OperationRequest> ? requestController, Map<String, TypePolicy> typePolicies = const {}, Map<String, Function> updateCacheHandlers = const {}, Map<OperationType, FetchPolicy> defaultFetchPolicies = const {}, bool addTypename = true})
Properties
- addTypename → bool
-
final
- cache ↔ Cache
-
getter/setter pairoverride-getter
-
defaultFetchPolicies
→ Map<
OperationType, FetchPolicy> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- link → Link
-
final
-
requestController
↔ StreamController<
OperationRequest> -
getter/setter pairoverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typePolicies
→ Map<
String, TypePolicy> -
final
-
updateCacheHandlers
→ Map<
String, Function> -
final
Methods
-
concat(
TypedLink next) → TypedLink -
Adds
next
after this typedLinkinherited -
dispose(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request<
TData, TVars> (OperationRequest< TData, TVars> request, [NextTypedLink<TData, TVars> ? forward]) → Stream<OperationResponse< TData, TVars> > -
A function called when a request reaches this TypedLink
override
-
route(
TypedLinkRouter route) → TypedLink -
Route requests after this typedLink
inherited
-
split(
bool test< TData, TVars>(OperationRequest< TypedLink left, [TypedLink right = const PassthroughTypedLink()]) → TypedLinkTData, TVars> request), -
Split requests after this typedLink
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited