GraphqlRunner class

To init this class use GraphqlRunner.init(...)

to use ValueNotifier & Provider use recommendations from Grapphql package: https://pub.dev/packages/graphql_flutter/versions/5.0.0-nullsafety.2

Constructors

GraphqlRunner({required GraphQLClient client, required ValueNotifier<GraphQLClient> clientNotifier, FetchPolicy defaultFetchPolicy = FetchPolicy.networkOnly})

Properties

client ↔ GraphQLClient
getter/setter pair
clientNotifier ValueNotifier<GraphQLClient>
getter/setter pair
defaultFetchPolicy ↔ FetchPolicy
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute<TVariables extends JsonSerializable, TQueryResult>({required String query, required TVariables variableValues, required DefaultGqlOperationType operationType, required FromJsonCallback<TQueryResult> fromJsonCallback}) Future<GraphqlResult<TQueryResult>>
Method to call mutations and queries
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

init({required GraphqlRunnerConfig config}) Future<GraphqlRunner>