configureDataStore method
Future<void>
configureDataStore({
- required ModelProviderInterface modelProvider,
- dynamic errorHandler()?,
- DataStoreConflictHandler? conflictHandler,
- int? syncInterval,
- int? syncMaxRecords,
- int? syncPageSize,
- AuthModeStrategy authModeStrategy = AuthModeStrategy.defaultStrategy,
Configure AmplifyDataStore plugin with mandatory modelProvider
and optional DataStore configuration properties including
errorHandler
: Custom error handler function that may receive an AmplifyException object when DataStore encounters an unhandled error during its background operations
syncInterval
: DataStore syncing interval (in seconds)
syncMaxRecords
: Max number of records to sync
syncPageSize
: Page size to sync
Implementation
Future<void> configureDataStore({
required ModelProviderInterface modelProvider,
Function(AmplifyException)? errorHandler,
DataStoreConflictHandler? conflictHandler,
int? syncInterval,
int? syncMaxRecords,
int? syncPageSize,
AuthModeStrategy authModeStrategy = AuthModeStrategy.defaultStrategy,
}) {
throw UnimplementedError('configureDataStore() has not been implemented.');
}