TypedLink class abstract
A fully typed implementation of gql_link
Constructors
- TypedLink.new()
-
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
functionfactory -
TypedLink.split(bool test<
TData, TVars>(OperationRequest< TypedLink left, [TypedLink right = const PassthroughTypedLink()])TData, TVars> request), -
Create a TypedLink which routes to the
left
typedLink iftest
returnstrue
. Otherwise it routes to theright
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< TypedLink left, [TypedLink right = const PassthroughTypedLink()]) → TypedLinkTData, TVars> request), - Split requests after this typedLink
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited