GraphQlProviderBase class

Base GraphQl provider.

Implementers

Constructors

GraphQlProviderBase()

Properties

authExceptionHandler Future<void> Function(AuthorizationException)?
Sets callback, called when middleware catches AuthorizationException.
no getter
client GraphQlClient
Returns GraphQLClient with or without authorization.
no setter
clientGuard Mutex
Returns mutex guarding the client.
no setter
connected RxBool
Indicates whether this GraphQlClient is successfully connected to the endpoint.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token AccessTokenSecret?
Returns authorization bearer token.
getter/setter pair

Methods

addListener(void handler(Exception?)) → void
Registers the provided handler to listen to Exceptions happening with the queries.
clearCache() → void
Clears the cache attached to the client.
disconnect() → void
Disconnects the client and disposes the connection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconnect() Future<void>
Reconnects the client right away if the token mismatch is detected.
removeListener(void handler(Exception?)) → void
Unregisters the provided handler from listening to Exceptions happening with the queries.
toString() String
A string representation of this object.
inherited

Operators

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