APICategory class
- Inheritance
-
- Object
- AmplifyCategory<
APIPluginInterface> - APICategory
Constructors
Properties
- category → Category
-
no setteroverride
- defaultPlugin → APIPluginInterface
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
plugins
→ List<
APIPluginInterface> -
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addPlugin(
APIPluginInterface plugin) → Future< void> -
Adds a plugin to the category.
inherited
-
cancelRequest(
String cancelToken) → void -
delete(
{required RestOptions restOptions}) → RestOperation -
get(
{required RestOptions restOptions}) → RestOperation -
getPlugin<
T extends P> () → T -
inherited
-
head(
{required RestOptions restOptions}) → RestOperation -
mutate<
T> ({required GraphQLRequest< T> request}) → GraphQLOperation<T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
{required RestOptions restOptions}) → RestOperation -
post(
{required RestOptions restOptions}) → RestOperation -
put(
{required RestOptions restOptions}) → RestOperation -
query<
T> ({required GraphQLRequest< T> request}) → GraphQLOperation<T> -
subscribe<
T> (GraphQLRequest< T> request, {void onEstablished()?}) → Stream<GraphQLResponse< T> > -
Subscribes to the given
request
and returns the stream of response events. An optionalonEstablished
callback can be used to be alerted when the subscription has been successfully established with the server. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited