AmplifyDataStoreMethodChannel class

An implementation of AmplifyDataStore that uses method channels.

Inheritance

Constructors

AmplifyDataStoreMethodChannel()
Internal use constructor

Properties

authModeStrategy AuthModeStrategy
The strategy for authorizing an API call.
finalinherited
category → Category
The category implemented by this plugin.
no setterinherited
conflictHandler DataStoreConflictHandler?
getter/setter pairinherited
errorHandler ↔ dynamic Function(AmplifyException)?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
modelProvider ModelProviderInterface?
modelProvider
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
streamController StreamController<DataStoreHubEvent>
no setterinherited
syncExpressions List<DataStoreSyncExpression>?
list of sync expressions to filter datastore sync against
getter/setter pairinherited
syncInterval int?
Datastore sync interval (in seconds)
getter/setter pairinherited
syncMaxRecords int?
Datastore max number of records to sync
getter/setter pairinherited
syncPageSize int?
Datastore page size to sync
getter/setter pairinherited

Methods

addPlugin() Future<void>
Called when the plugin is added to the category.
inherited
cast<P extends AmplifyPluginInterface>() → P
Casts a plugin to a category-specific implementation.
inherited
clear() Future<void>
override
configure({AmplifyConfig? config}) Future<void>
Configures the plugin using the registered config.
inherited
configureDataStore({ModelProviderInterface? modelProvider, dynamic errorHandler(AmplifyException)?, DataStoreConflictHandler? conflictHandler, List<DataStoreSyncExpression>? syncExpressions, int? syncInterval, int? syncMaxRecords, int? syncPageSize, AuthModeStrategy authModeStrategy = AuthModeStrategy.defaultStrategy}) Future<void>
This method instantiates the native DataStore plugins with plugin configurations. This needs to happen before Amplify.configure() can be called.
override
delete<T extends Model>(T model, {QueryPredicate<Model>? where}) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe<T extends Model>(ModelType<T> modelType, {QueryPredicate<Model>? where}) Stream<SubscriptionEvent<T>>
override
observeQuery<T extends Model>(ModelType<T> modelType, {QueryPredicate<Model>? where, List<QuerySortBy>? sortBy, ObserveQueryThrottleOptions throttleOptions = const ObserveQueryThrottleOptions.defaults()}) Stream<QuerySnapshot<T>>
override
query<T extends Model>(ModelType<T> modelType, {QueryPredicate<Model>? where, QueryPagination? pagination, List<QuerySortBy>? sortBy}) Future<List<T>>
override
reset() Future<void>
Resets the plugin by removing all traces of it from the device.
inherited
save<T extends Model>(T model, {QueryPredicate<Model>? where}) Future<void>
override
start() Future<void>
override
stop() Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

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