AmplifyDataStore class
Methods
-
clear()
→ Future<void>
-
-
configure({AmplifyConfig? config, required AmplifyAuthProviderRepository authProviderRepo})
→ Future<void>
-
Configures the plugin using the registered
config
.
-
configureDataStore({ModelProviderInterface? modelProvider, dynamic errorHandler(AmplifyException)?, DataStoreConflictHandler? conflictHandler, List<DataStoreSyncExpression>? syncExpressions, int? syncInterval, int? syncMaxRecords, int? syncPageSize, AuthModeStrategy authModeStrategy = AuthModeStrategy.defaultStrategy})
→ Future<void>
-
Configure AmplifyDataStore plugin with mandatory
modelProvider
and optional DataStore configuration properties including
-
delete<T extends Model>(T model, {QueryPredicate<Model>? where})
→ Future<void>
-
-
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>>
-
-
observeQuery<T extends Model>(ModelType<T> modelType, {QueryPredicate<Model>? where, List<QuerySortBy>? sortBy, ObserveQueryThrottleOptions throttleOptions = const ObserveQueryThrottleOptions.defaults()})
→ Stream<QuerySnapshot<T>>
-
-
query<T extends Model>(ModelType<T> modelType, {QueryPredicate<Model>? where, List<QuerySortBy>? sortBy})
→ Future<List<T>>
-
-
save<T extends Model>(T model, {QueryPredicate<Model>? where})
→ Future<void>
-
-
start()
→ Future<void>
-
-
stop()
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
streamWrapper
↔ DataStoreStreamController
-
getter/setter pair