SimpleCall class
SimpleCall exposes a minimal way make quickly make a call to the graphql server.
By the time the call is made,its expected that GraphQlClient has occurred. Other an authentication error will occur.
All keyword arguments are required.
if variables
is no required, map an empty map
instead of null
graphClient
argument should be a valid instance of GraphQlClient
Example
SimpleCall.callAPI(context, virtualCards, {}, SILAppWrapperBase.of(context).graphQLClient)
Constructors
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
-
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
-
callAPI(
{required String queryString, required Map< String, dynamic> variables, required IGraphQlClient graphClient, bool raw = false}) → Future - callAPI method to call graphQL API
-
callRestAPI(
{required String endpoint, required String method, required IGraphQlClient graphClient, Map< String, dynamic> ? variables, bool raw = false}) → Future - callRestAPI method to call REST API