TypedLink class abstract

A fully typed implementation of gql_link

Implementers

Constructors

Create a TypedLink
const
TypedLink.concat(TypedLink first, TypedLink second)
Create a TypedLink by chaining two typedLinks
factory
TypedLink.from(List<TypedLink> typedLinks)
Create a TypedLink by chaining multiple typedLinks
factory
TypedLink.function(TypedLinkFunction function)
Create a TypedLink from a TypedLinkFunction
factory
TypedLink.route(TypedLinkRouter route)
Creates a TypedLink which routes OperationRequest to whichever typedLink is returned from the route function
factory
TypedLink.split(bool test<TData, TVars>(OperationRequest<TData, TVars> request), TypedLink left, [TypedLink right = const PassthroughTypedLink()])
Create a TypedLink which routes to the left typedLink if test returns true. Otherwise it routes to the right typedLink, which defaults to passthrough.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

concat(TypedLink next) TypedLink
Adds next after this typedLink
dispose() Future<void>
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
route(TypedLinkRouter route) TypedLink
Route requests after this typedLink
split(bool test<TData, TVars>(OperationRequest<TData, TVars> request), TypedLink left, [TypedLink right = const PassthroughTypedLink()]) TypedLink
Split requests after this typedLink
toString() String
A string representation of this object.
inherited

Operators

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