HasuraConnect class Null safety

Constructors

HasuraConnect(String url, {int? reconnectionAttempt, List<Interceptor>? interceptors, Map<String, String>? headers, Client httpClientFactory()?})

Properties

controller StreamController
@visibleForTestingfinal
hashCode int
The hash code for this object.
read-onlyinherited
headers Map<String, String>?
final
isConnected bool
read-only
reconnectionAttempt int?
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
snapmap Map<String, Snapshot>
@visibleForTestingfinal
url String
final

Methods

disconnect() Future<void>
Disconect from Hasura
dispose() Future
@mustCallSuper
executeMutation(Query query) Future
Execute a Mutation from a Query
executeQuery(Query query) Future
Execute a Query from a Query
executeSubscription(Query query) Future<Snapshot>
Execute a Subscription from a Query
mutation(String document, {Map<String, dynamic>? variables, bool tryAgain = true, String? key, Map<String, String>? headers}) Future
Execute a Mutation from a Document
normalizeStreamValue(Map data) Future<void>
@visibleForTesting
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
query(String document, {String? key, Map<String, dynamic>? variables, Map<String, String>? headers}) Future
Execute a Query from a Document
querySubscription(Query query) String
@visibleForTesting
rootStreamListener(dynamic data) → void
@visibleForTesting
sendToWebSocketServer(String input) → void
@visibleForTesting
subscription(String document, {String? key, Map<String, dynamic>? variables, Map<String, String>? headers}) Future<Snapshot>
Execute a Subscription from a Document
toString() String
A string representation of this object.
inherited

Operators

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