AmplifyAPI class abstract

The AWS implementation of the Amplify API category.

Constructors

AmplifyAPI({List<APIAuthProvider> authProviders = const [], ModelProviderInterface? modelProvider})
The AWS implementation of the Amplify API category.
factory
AmplifyAPI.protected()
Protected constructor for subclasses.

Properties

category → Category
The category implemented by this plugin.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
modelProvider → ModelProviderInterface?
modelProvider
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPlugin() Future<void>
Called when the plugin is added to the category.
inherited
cancelRequest(String cancelToken) → void
inherited
cast<P extends AmplifyPluginInterface>() → P
Casts a plugin to a category-specific implementation.
inherited
configure({AmplifyConfig? config}) Future<void>
Configures the plugin using the registered config.
inherited
delete({required RestOptions restOptions}) RestOperation
inherited
get({required RestOptions restOptions}) RestOperation
inherited
inherited
mutate<T>({required GraphQLRequest<T> request}) GraphQLOperation<T>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch({required RestOptions restOptions}) RestOperation
inherited
post({required RestOptions restOptions}) RestOperation
inherited
put({required RestOptions restOptions}) RestOperation
inherited
query<T>({required GraphQLRequest<T> request}) GraphQLOperation<T>
inherited
registerAuthProvider(APIAuthProvider authProvider) → void
Registers an APIAuthProvider with this plugin.
inherited
reset() Future<void>
Resets the plugin by removing all traces of it from the device.
inherited
subscribe<T>(GraphQLRequest<T> request, {void onEstablished()?}) Stream<GraphQLResponse<T>>
Subscribes to the given request and returns the stream of response events. An optional onEstablished callback can be used to be alerted when the subscription has been successfully established with the server.
inherited
toString() String
A string representation of this object.
inherited

Operators

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